UIView层addAnimation:forKey:
由于 forKey 的值是 NSString,我在 Apple 文档中哪里可以找到所有可能值的完整列表?谢谢
Since the value of forKey is a NSString, where do I find a complete list of all possible value in the Apple documentation? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
addAnimation:forKey:
方法并没有按照您的想法进行操作。第二个字符串参数是与动画对象关联的任意用户定义字符串。此参数的用途是稍后使用
animationForKey:
方法访问动画对象。上面/下面提供的可动画属性列表与
CABasicAnimation
实例的keyPath
属性相关。The method
addAnimation:forKey:
doesn't do what you think it does.The second string parameter is an arbitrary user-defined string to associate with the animation object. The purpose of this parameter is for accessing the animation object at a later time with the
animationForKey:
method.The list of animatable properties provided above/below is pertinent to the
keyPath
property of aCABasicAnimation
instance.CALayer 的动画属性列表:
http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html#//apple_ref/doc/uid/TP40005942-SW1
和/或这里
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html#//apple_ref/doc/uid/TP40005942-SW1
List of animatable properties of CALayer:
http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html#//apple_ref/doc/uid/TP40005942-SW1
and/or here
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html#//apple_ref/doc/uid/TP40005942-SW1