开发者

Is there any way to improve UIView beginAnimations/commitAnimations performance?

开发者 https://www.devze.com 2022-12-29 20:16 出处:网络
I am resizing a control via [UIView beginAnimations] [self setTransform:CGAffineTransformMakeScale(0.5f, 0.5f)];

I am resizing a control via

[UIView beginAnimations]
[self setTransform:CGAffineTransformMakeScale(0.5f, 0.5f)];
[UIView commitAnimations]

The animation looks beautiful on the iPhone simulator but on my 2G test device it is unbearably slow and choppy.开发者_C百科 How can I improve the animation on an older iPhone? Or do I have to disable animated transitions on older devices? Thanks.


My problem was too many non-opaque UIViews on the screen. I radically reduced the number through some redesign and it is very zippy now.

0

精彩评论

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