Я использую этот код, чтобы добавить нижний колонтитул в TableView. Он имеет 20 разделов, и каждый раздел состоит из нескольких строк. Там есть метод titleForHeaderInSection и sectionForSectionIndexTitle.
CGRect footerRect = CGRectMake(0, 0, 320, 40);
UILabel *tableFooter = [[UILabel alloc] initWithFrame:footerRect];
tableFooter.textColor = [UIColor blueColor];
tableFooter.backgroundColor = [self.theTable backgroundColor];
tableFooter.opaque = YES;
tableFooter.font = [UIFont boldSystemFontOfSize:15];
tableFooter.text = @"test";
self.theTable.tableFooterView = tableFooter;
[tableFooter release];
Что я делаю неправильно?
спасибо,
RL