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
  • 39,839
  • 68
  • 255
  • 489

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,694
  • 13
  • 151
  • 195
0

You can declare it as follows..

@private //variable;

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

Community
  • 1
  • 1
Hadi
  • 1,212
  • 2
  • 17
  • 31