我想要一个 uiview 的滚动动画。所以我正在为 mainscrollview 和 rollupboard 制作动画。所以在 viewDidLoad 我将这两个视图的框架设置为:
dashRollUpStand=[[UIImageView alloc]initWithFrame:CGRectMake(0,346,320,0)];
mainScrollView=[[UIScrollView alloc]initWithFrame:CGRectMake(10,346,300,0)];
我也有这个 mainScrollView 的许多子视图。
现在我正在使用以下代码加载带有滚动动画的视图:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIAnimationCurveLinear];
[dashRollUpStand setFrame:CGRectMake(0,0,320,346)];
[mainScrollView setFrame:CGRectMake(10,9,300,337)];
[UIView commitAnimations];
此汇总动画在 iphone 中运行良好。但在 iphone 视网膜显示器上,这个动画一点也不流畅。那么我怎样才能使它在 iphone 视网膜显示中平滑。