摘要:
CALayer 1.3D变换中的透视效果,由矩阵中的m34元素控制,用于按比例缩放x、y,以此计算离视角有多远。m34默认值是0,通过设置 m34 = -1.0 / d 来应用透视效果,d代表视角相机与屏幕的距离,单位是像素,其值一般为 500 ~ 1000 例如旋转一个3D方块,使其呈现透视效果。 阅读全文
posted @ 2016-08-01 14:18
Emerys
阅读(109)
评论(0)
推荐(0)
摘要:
UIKit Animation 1.属性动画 - (void)changeFrameAnimation { [UIView beginAnimations:@"frameAnimation" context:nil]; [UIView setAnimationDuration:0.8]; [UIVi 阅读全文
posted @ 2016-08-01 14:17
Emerys
阅读(166)
评论(0)
推荐(0)
摘要:
CoreAnimation 1.CABasicAnimation // position CABasicAnimation *ba = [CABasicAnimation animationWithKeyPath:@"position"];// boundsCABasicAnimation *ba 阅读全文
posted @ 2016-08-01 14:16
Emerys
阅读(198)
评论(0)
推荐(0)

浙公网安备 33010602011771号