开发者

Is there a way to produce animations beyond stacks of images in UIImage?

I'm fairly new to iOS development, and I was wondering: is there a way to produce animations on the iPhone besides creating a bunch of still images and animating them in a UIImageView? What are the other methods for 开发者_如何学Gocreating a moving animation on iOS?


Apple has an entire framework called Core Animation that is built to help you make animations within your interface. I recommend checking out the various resources listed in this question for learning how to use Core Animation in its various forms.


Simple animations can be easily done by transforming views within the [UIView beginAnimations: context:] and [UIView commitAnimations].

For example, to scale the current view, you would :

[UIView beginAnimations:@"auxviewclose" context:NULL];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
self.frame = CGRectMake(0, self.superview.frame.size.height-45, self.frame.size.width, 45);
[UIView commitAnimations];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜