【发布时间】:2012-02-08 10:28:06
【问题描述】:
我的代码中有这些行:
[defaults setValue:someValue forKey:@"someValue"];
[animationGroup setValue:@"someValue" forKey:@"someValue"]; // CAAnimationGroup
NSString* animName = [theAnimation valueForKey:@"someValue"]; // CAAnimation
但是阅读 Apple 参考文档:
- https://developer.apple.com/library/IOs/#documentation/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/Reference/Reference.html
- https://developer.apple.com/library/IOs/#documentation/GraphicsImaging/Reference/CAAnimationGroup_class/Introduction/Introduction.html
- https://developer.apple.com/library/IOs/#documentation/GraphicsImaging/Reference/CAAnimation_class/Introduction/Introduction.html#//apple_ref/occ/cl/CAAnimation
我没有看到对这些方法的任何引用,即使是解析层次结构或符合的协议。他们从哪里来?是否允许使用它们?
【问题讨论】:
标签: objective-c iphone reference key-value-coding