摘要: 关于UIView动画:[UIView beginAnimations:@"zoom out"context:nil];[UIView setAnimationDuration:1.f];[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];cover.transform=CGAffineTransformMakeScale(9.25,7.05);cover.center=CGPointMake(430,512);[UIView commitAnimations]UIView动画是应用在一个view上面的。关于CABas 阅读全文
posted @ 2012-03-26 18:34 Ethan_村长 阅读(2364) 评论(0) 推荐(1) 编辑
摘要: CABasicAnimation:为层的属性提供了简单的插值 //需要改变的属性CABasicAnimation*animation=[CABasicAnimationanimationWithKeyPath:@"cornerRadius"];animation.fromValue=[NSNumbernumberWithFloat:0.0f];animation.toValue=[NSNumbernumberWithFloat:40.0f];//执行时间animation.duration=10.0;//执行次数animation.repeatCount=2; [layer 阅读全文
posted @ 2012-03-26 18:33 Ethan_村长 阅读(1780) 评论(0) 推荐(0) 编辑
摘要: UIKit中包含了UIGestureRecognizer类,用于检测发生在设备中的手势。UIGestureRecognizer是一个抽象类,定义了所有手势的基本行为,它有下面一些子类用于处理具体的手势: 1、拍击UITapGestureRecognizer (任意次数的拍击) 2、向里或向外捏UIPinchGestureRecognizer (用于缩放) 3、摇动或者拖拽UIPanGestureRecognizer 4、擦碰UISwipeGestureRecognizer (以任意方向) 5、旋转UIRotationGestureRecognizer (手指朝相反方向移动) 6、长按UILon 阅读全文
posted @ 2012-03-26 18:06 Ethan_村长 阅读(778) 评论(0) 推荐(0) 编辑
摘要: CATransaction 事务类,可以对多个layer的属性同时进行修改.它分隐式事务,和显式事务.区分隐式动画和隐式事务:隐式动画通过隐式事务实现动画 。区分显式动画和显式事务:显式动画有多种实现方式,显式事务是一种实现显式动画的方式。1.隐式事务除显式事务外,任何对于CALayer属性的修改,都是隐式事务.这样的事务会在run-loop中被提交.-(void)viewDidLoad{//初始化一个layer,添加到主视图layer=[CALayerlayer];layer.bounds=CGRectMake(0,0,200,200);layer.position=CGPointMake( 阅读全文
posted @ 2012-03-26 17:52 Ethan_村长 阅读(17502) 评论(3) 推荐(0) 编辑
摘要: 在工程info.plist文件中手动加入 MinimumOSVersion | 3.1.2 设置,就能实现4.0编译的程序在3.1.2固件上运行 阅读全文
posted @ 2012-03-26 13:25 Ethan_村长 阅读(1814) 评论(0) 推荐(0) 编辑