Category which allows the usage of start and completion blocks in CAAnimation instances, instead of a delegate
Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CAAnimationBlocks.xcodeproj Actual conversion to ARC and other updates to use the modern stuff. May 10, 2013
CAAnimationBlocks
CAAnimationBlocksTests
.gitignore
COPYRIGHT.txt
README.md

README.md

CAAnimationBlocks

A category that allows the usage of start and completion blocks in CAAnimation instances, instead of an unpractical delegate.

To use it in your project, just add the CAAnimation+Blocks.h and CAAnimation+Blocks.m files, then just assign a void ^(BOOL finished) block to the completion property of the CAAnimation instance (which is added to it through a category). You can also assign a start block of the type void ^(void). You can find a working example in RootViewController.m.