Этот код работает: [self.tableView reloadData]
, но если я расширю loadView
метод UITableViewController
, например:
- (void) loadView {
[super loadView];
float headerHeight = 80;
UIView *tableV = self.tableView;
CGRect tableFrame = self.tableView.frame;
self.view = [[UIView alloc] initWithFrame:self.tableView.frame];
[self.view release];
tableFrame.origin.y += headerHeight - [UIApplication sharedApplication].statusBarFrame.size.height;
tableFrame.size.height -= headerHeight;
tableV.frame = tableFrame;
[self.view addSubview:tableV];
}
данные tableView не перезагружаются. Что я делаю не так?