A couple of months ago I mentioned a UIKit library allowing you to render tile maps and sprites like Cocos2D.
Here’s a library submitted by Nicholas Tau that provides Cocos2D style animations called UIKitAimationPro.
This means that you can easily create complex animation sequences with UIKit elements, also with nice blocks based callbacks.
As Nicholas states in the readme:
it helps you create a sequnce of animaions like the way in cocos2d. (also like Sprite Kit even without iOS7)
This source code example from the readme shows UIKitAnimationPro in action:
[self.view addSubview:view];
view.backgroundColor = [UIColor redColor];
[view release];
UICallbackBlock * callback = [UICallbackBlock actionWithBlock:^(id data)
{
NSLog(@"animation finish");
}];
UIScaleAnimation * scale = [UIScaleAnimation actionByScaleX:2.0
ScaleY:3.0
Duration:1];
UIDisplaceAnimation * displace = [UIDisplaceAnimation actionByPoint:CGPointMake(200, 200)
Duration:1.0];
UIFadeAnimation * fade = [UIFadeAnimation actionByAlpha:-0.5
Duration:1.0];
UIRotateAnimation * rotate = [UIRotateAnimation actionByRotate:45
Duration:1.0];
UIRotateAnimation * rotateTo = [UIRotateAnimation actionToRotate:15
Duration:1.0];
UIAnimationSequence * seq = [[UIAnimationSequence alloc] init];
[seq addAction:scale];
[seq addAction:callback];
[seq addAction:displace];
[seq addAction:fade];
[seq addAction:rotate];
[seq addAction:rotateTo];
[seq addAction:callback];
//of course,if you just only one animation, you just need
//[view runAction:scale] or [view runAction:displace];
[view runAction:seq];
You can find UIKitAnimationPro on Github here.
An excellent library for UIKit animation.
- Tutorial And Tool: Cutscenes With Cocos2D
- New Open Source Project Bringing iOS 7 Style To iOS 5 and 6 UIKit Interfaces
- Open Source Control Providing iOS 7 Inspired Flat UI Elements
- Examples: How To Integrate Cocos2D-X With The iOS SDK’s UIKit
- Library Allowing You To Easily Enhance iOS UIKit Interface Elements With Icon Fonts
Original article: Library Providing Cocos2D CCAction Style Animation Sequences With UIKit Elements
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




