2017-05-24 3 views

Antwort

0

Sie können es tun Kategorien mit .. einen Separator Header-Datei erstellen (Private Header) mit jedem Post fix wie *_Internal.h. Und definieren Sie alle privaten Methoden/Delegaten dort.

Beispiel

Hello.h

@interface Hello : NSObject 
- (void)publicMethod; 
@end 

Hello_Internal.h

@interface Hello (Internal) 
- (void)privateMethod; 
@end 

Hello.m

@implementation Hello 
- (void)privateMethod { 

} 
- (void)publicMethod { 

} 
@end 

Verwendung innerhalb der Bibliothek

#import "Hello.h" 
#import "Hello_Internal.h" 
Verwandte Themen