I want to define private instance variables in MyClass.m file. It seems to me there are two ways to do it:
use class extension
@interface HelloViewController () { int value; }
define in @implementation section
@implementation HelloViewController { int value; }
Which is better?
I think recent Apple's coding style is to use class extension?
e.g. MasterViewController.m generated by 'Master-Detail Application Template'
@interface MasterViewController () {
NSMutableArray *_objects;
}
@end