CAAnimationBlocks 0.0.1

CAAnimationBlocks 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total427,080
Week0
Month0

Installs

Apps2,161
Pod Tries9
Test Targets393
Watch Apps2
powered by Segment

GitHub

Stars181
Watchers8
Forks35
Issues0
Contributors4
Pull Requests0

Code

Files2
LOCLines of Code 79


  • By
  • Nilson Souto

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) 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.