In a Master-Detail app I\'d like to display a TableView with 5 sections titled:
You should declare your static array above @implementation.
static NSArray *titles_1 = nil;
@implementation ...
And define it in init or awakeFromNib or any other method like viewDidLoad, applicationDidFinishLaunching wherever you want.
- (void)initMethod{ //change the method name accordingly
if (titles_1 == nil){
[self setTitles_1:@[ @"Your Move", @"Their Move", @"Won Games", @"Lost Games", @"Options" ]];
}
}