的私有方法,如何区分objective-c中的私有成员变量?
我可以用
@interface MyClass(PrivateMethods)
- (void) _foo;
@end
你如何申报在Objective C的私有成员变量?
的私有方法,如何区分objective-c中的私有成员变量?
我可以用
@interface MyClass(PrivateMethods)
- (void) _foo;
@end
你如何申报在Objective C的私有成员变量?
@interface MyClass : Superclass {
@private
NSString * privateString;
}
@end