My tab controller has a tabular view that displays as the first and initial view. The view controller class is a subclass of uitableviewcontroller, so I do not use XIB for this. Since I give the view name directly in the interface builder for the MainWindow tab view, I'm not sure where I can set the tableview style that appears in the “normal” style at the moment. I want to change it to “grouped”, however there is no code in which I call and allocate the table controller (in this case I would use initWithStyle).
Any ideas on how to change the original table view to a grouped style instead of a simple style?
I also tried to override initWithStyle and set it as shown below, but it doesn't work.
- (id)initWithStyle:(UITableViewStyle)style {
self = [super initWithStyle:UITableViewStyleGrouped];
if (self) {
}
return self;
}
Thank,
source
share