I have read that I can use the animator object in any UIView to make an animation and this is included in Core Animation so I wrote
[[label animator] setFrame:someRect];
But it gave a warning that UILabel may not respond to -animator
Also I can find the method [label setWantsLayer:YES];
Would anyone help me please?
I just typed this right in here, so beware of typos. But this is the idea. Wrap changes to UIView subclasses in a call to
[UIView beginAnimations: context:]and[UIView commitAnimations], set some configurations on the animations inside there, and boom, you’re animating.There are other ways to do it, but for my money this is the simplest.
Way more detail in the UIView class reference at http://developer.apple.com/iphone/library/documentation/uikit/reference/UIView_Class/UIView/UIView.html