Some time ago I mentioned a library allowing you to drastically shorten the syntax needed for UIView animation providing a clean blocks based animation syntax.
Today I came across a library known as PRTween that takes things another step further by providing a tween library for UIView animation (or any other numerical value). You can tween properties UIView properties that you normally could not, and the library provides a very elegant syntax with blocks based callbacks.
Here’s an example of a simple alpha tween with PRTween:
Which is identical to this code without PRTween:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:3];
someView.alpha = 0;
[UIView commitAnimations];
You can find the library from Dominik Hoffman with a complete example on Github here and the repository for an ARC compatible fork can be found on Github here.
A great looking library for easy UIView animations – or any numeric variable tweening.
©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
.