Latest 1.0.0
Homepage https://github.com/MartinMoizard/GSAnimationBlockDelegate
License MIT
Platforms ios 5.0, requires ARC

GSAnimationBlockDelegate is a lightweight library that enable the use of block instead of delegate method
with CAAnimation

The blockOnAnimationSucceeded block is called instead of

- (void) animationDidStart:(CAAnimation *)theAnimation

and the blockOnAnimationSucceeded or blockOnAnimationFailed blocks are called instead of

- (void) animationDidStop:(CAAnimation *)theAnimation
                 finished:(BOOL)flag

depending on the flag value

It is licensed under the MIT License.

Usage

CAAnimation *animation = /* an animation */

GSAnimationBlockDelegate *delegate = [[GSAnimationBlockDelegate alloc] init];
delegate.blockOnAnimationSucceeded = ^{

};

Latest podspec

{
    "name": "GSAnimationBlockDelegate",
    "version": "1.0.0",
    "summary": "A lightweight class that supports block callbacks instead of CAAnimation delegates.",
    "description": "  GSAnimationBlockDelegate offers 3 different blocks :n  blockOnAnimationStarted when the animation startsn  blockOnAnimationSucceeded when the animation succeedsn  and blockOnAnimationFailed when the animation fails.n",
    "homepage": "https://github.com/MartinMoizard/GSAnimationBlockDelegate",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": "Martin Moizard",
    "source": {
        "git": "https://github.com/MartinMoizard/GSAnimationBlockDelegate.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "GSAnimationBlockDelegate/Library",
    "requires_arc": true
}

Pin It on Pinterest

Share This