UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 0, 460)];
[imgView setImage:[UIImage imageNamed:@"pagethr.png"]];
self.imageViews = imgView;
[self.view addSubview:imageViews];
[imgView release];
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
[UIView setAnimationDuration:0.75];
[imageViews setFrame:CGRectMake(0, 0, 320, 460)];
[UIView commitAnimations];
本文通过实例展示了如何使用UIImageView的属性设置和动画效果,包括设置图片、改变位置及大小,实现平滑过渡,为iOS开发提供实用技巧。
1035

被折叠的 条评论
为什么被折叠?



