Latest 0.1.3
Homepage https://github.com/gonzalonunez/GNTickerButton
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Using GNTickerButton is very easy. Rotating the ticker is as easy as calling one function:

public func rotateTickerWithDuration(duration:CFTimeInterval, rotations repeatCount:Int = 1, rotationBlock: (Void -> Void)?)

The rotationBlock gets called everytime the ticker rotates completely. Keep in mind you can choose to pass nil into here and set yourself as the delegate of the GNTickerButton instead. For this, you’ll need to conform to GNTickerButtonRotationDelegate.

Note: As of right now, passing in a non-nil block takes precedence over the delegate. The delegate method is only called if no block was passed in.

The rest of the variables should be very self explanatory. Oh and take note that this is an @IBDesignable class with many @IBInspectable variables!

Installation

GNTickerButton is available through CocoaPods.
To install it, simply add the following lines to your Podfile:

use_frameworks!
pod "GNTickerButton"

Contribution

Please feel free to submit any and all pull requests, I know there’s more we can add to this button!

Author

Gonzalo Nunez, [email protected]

License

GNTickerButton is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "GNTickerButton",
    "version": "0.1.3",
    "summary": "Inspired by the Layout app by Instagram, this is a UIButton subclass with a ticker that spins around as desired.",
    "homepage": "https://github.com/gonzalonunez/GNTickerButton",
    "license": "MIT",
    "authors": {
        "Gonzalo Nunez": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gonzalonunez/GNTickerButton.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "GNTickerButton": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This