0

for private methods,

I could use

@interface MyClass(PrivateMethods)
- (void) _foo;
@end  

How do you declare a private member variable in objective c?

eugene
  • 36,347
  • 56
  • 224
  • 435

2 Answers2

0

http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocDefiningClasses.html#//apple_ref/doc/uid/TP30001163-CH12-TPXREF127

@interface MyClass : Superclass {

@private
    NSString * privateString;
}

@end
jscs
  • 63,095
  • 13
  • 148
  • 192
0

You can declare it as follows..

@private //variable;

Check this question out. Question- private-instance-variable

Community
  • 1
  • 1
Hadi
  • 1,192
  • 2
  • 16
  • 31