1
我在学习开源项目时看到了一些代码:here。 但我检查Objective-C语法后,我无法弄清楚意义。UIViewController后的括号
的代码看起来是这样的:
@interface UIViewController (UIViewDeckItem)
@property(nonatomic,readonly,retain) IIViewDeckController *viewDeckController;
@end
@implementation UIViewController (UIViewDeckItem)
@dynamic viewDeckController;
...
@end
@implementation UIViewController (UIViewDeckController_ViewContainmentEmulation_Fakes)
...
@end
不知道在哪里可以找到这个实施相关Obejctive-C的信息。
我认为其所谓的范畴。它用于当你想添加方法到一个类,但不想从它继承。 – TheNitram