Latest 0.1
Homepage https://github.com/matthewcheok/MCFireworksButton
License MIT
Platforms ios 7.0, requires ARC
Authors

MCFireworksButton License MIT

Badge w/ Version
Badge w/ Platform

Drop-in button control with with particle effects similar to the Like button in Facebook Paper.

Screenshot

Screenshot

Installation

Add the following to your CocoaPods Podfile

pod 'MCFireworksButton'

or clone as a git submodule,

or just copy files in the MCFireworksButton folder into your project.

Using MCFireworksButton

Simply call methods -animate to begin the particle effect.

[self.likeButton animate];

Some basic bounce animations are included for convenience.

[self.likeButton popInsideWithDuration:0.4];

or

[self.likeButton popOutsideWithDuration:0.5];

Configuration

You can specify the particle texture and scales to be used in the particle effect:

self.likeButton.particleImage = [UIImage imageNamed:@"Sparkle"];
self.likeButton.particleScale = 0.05;
self.likeButton.particleScaleRange = 0.02;

Alternatively you can use MCFireworksView directly if you don’t need UIButton functionality.

License

MCFireworksButton is under the MIT license.

Latest podspec

{
    "name": "MCFireworksButton",
    "version": "0.1",
    "platforms": {
        "ios": "7.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Drop-in button control with with particle effects similar to the Like button in Facebook Paper.",
    "homepage": "https://github.com/matthewcheok/MCFireworksButton",
    "authors": {
        "Matthew Cheok": "[email protected]"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/matthewcheok/MCFireworksButton.git",
        "branch": "master",
        "tag": "0.1"
    },
    "source_files": "MCFireworksButton/*.{h,m}",
    "public_header_files": "MCFireworksButton/*.h"
}

Pin It on Pinterest

Share This