摘要:
1 //移动旋转动画效果2 CATransform3D rotate = CATransform3DMakeRotation(70.0 * M_PI / 180.0, 0.0, 0.0, 1.0);3 CATransform3D translate = CATransform3DMakeTranslation(20.0, -500.0, 0.0);4 self.layer.transform = CATransform3DConcat(rotate, translate); //执行动画5 [UIViewanimateWithDuration:0.3delay:0.0options:UIVi. 阅读全文
摘要:
一, iPhone中处理触摸事件的操作,在3.2之前是主要使用的是由UIResponder而来的如下4种方式1 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event2 - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event3 - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event4 - (void)touchesMoved:(NSSet *)touches with 阅读全文