Animation-Layer
2016-07-28 17:07
435 查看
Animatable properties
Layer animations have some properties for developers to control.Position & Size & Transform
position
modify this to animate the position of the layer within it’s parent layer.bounds
modify this to animate the bounding frame of the layer.transform
modify this to move,scale,and rotate the layer.You can even animate layers in 3D space.Border
a layer’s borderColor,borderWidth,cornerRadius can be modified to change a layer’s appearance.Shadow
shadowOffset : contro a shadow appear closer to or further away from a layershadowOpacity : modify this to make the shadow fade in or out.
shadowPath : modify this to change the shape of the layer’s shadow.
shadowRadius : modify this to control the blur(模糊度) of the shadow; this is especially useful when simulating movement of the view towards(朝向) or away from the surface(外观) where the shadow is cast(投射). 这个属性在这个情况下很有用:控制一个 view 靠近或离远时,设置 view 的 shadow 模糊度从而使动画更惟妙惟肖。
Contents
contents : modify this to assign(指定) a raw(原始的) TIFF or PNG data as the layers contentsmask : modify this to establish(放置) the shape or image you’ll use to mask the visible contents of the layer. 将一个形状图层或者图片放置到 layer 上形成遮盖
opacity(透明度) : animate the transparency of the layer contents
this is only a partial list of properties you can niamate;
Animations vc real content
when you start animating a textfield ,you’re not actually seeing the field itself animated; instead ,you’re seeing a cached version of it known as the presentation layer. The presentation layer is moved from the screen once the animation completes,and the original layer show itself again. So , you can’t tap the animated field , enter any text , because it’s not the truly field.相关文章推荐
- 峰回路转,Firefox 浏览器即将重返 iOS 平台
- 峰回路转,Firefox 浏览器即将重返 iOS 平台
- 不可修补的 iOS 漏洞可能导致 iPhone 4s 到 iPhone X 永久越狱
- iOS 12.4 系统遭黑客破解,漏洞危及数百万用户
- 每日安全资讯:NSO,一家专业入侵 iPhone 的神秘公司
- [转][源代码]Comex公布JailbreakMe 3.0源代码
- Validform+layer实现漂亮的表单验证特效
- 小巧强大的jquery layer弹窗弹层插件
- Android开发之图形图像与动画(二)Animation实现图像的渐变/缩放/位移/旋转
- 讲解iOS开发中基本的定位功能实现
- iOS中定位当前位置坐标及转换为火星坐标的方法
- js判断客户端是iOS还是Android等移动终端的方法
- iOS应用开发中AFNetworking库的常用HTTP操作方法小结
- iOS应用中UISearchDisplayController搜索效果的用法
- iOS App开发中的UISegmentedControl分段组件用法总结
- IOS开发环境windows化攻略
- iOS应用中UITableView左滑自定义选项及批量删除的实现
- iOS中UIAlertView警告框组件的使用教程
- 浅析iOS应用开发中线程间的通信与线程安全问题