Как добавить нижний колонтитул в UITableView?

Я использую этот код, чтобы добавить нижний колонтитул в 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

56
задан Rui Lopes 3 March 2011 в 13:07
поделиться