有没有办法改善UIView beginAnimations / commitAnimations的性能?

时间:2010-05-05 15:58:28

标签: performance iphone-sdk-3.0 uiview core-animation

我正在通过

调整控件的大小
[UIView beginAnimations]
[self setTransform:CGAffineTransformMakeScale(0.5f, 0.5f)];
[UIView commitAnimations]

动画在iPhone模拟器上看起来很漂亮,但在我的2G测试设备上,它是无法忍受的缓慢和波涛汹涌。如何在旧款iPhone上改进动画效果?或者我必须禁用旧设备上的动画过渡?感谢。

1 个答案:

答案 0 :(得分:3)

我的问题是屏幕上有太多不透明的UIViews。我通过一些重新设计从根本上减少了数量,现在非常活跃。