for private methods,
I could use
@interface MyClass(PrivateMethods)
- (void) _foo;
@end
How do you declare a private member variable in objective c?
for private methods,
I could use
@interface MyClass(PrivateMethods)
- (void) _foo;
@end
How do you declare a private member variable in objective c?
@interface MyClass : Superclass {
@private
NSString * privateString;
}
@end
You can declare it as follows..
@private //variable;
Check this question out. Question- private-instance-variable