2012-06-20 24 views
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的信息。

+0

我認爲其所謂的範疇。它用於當你想添加方法到一個類,但不想從它繼承。 – TheNitram

回答