• Stars
    star
    175
  • Rank 218,059 (Top 5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 13 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Category which allows the usage of start and completion blocks in CAAnimation instances, instead of a delegate

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.