2015-07-30 2 views

ответ

1

Вам необходимо реализовать метод UITableViewDelegate

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section 

и вернуть желаемый вид (например, UILabel с текст, который вам нужен в нижнем колонтитуле) для соответствующего раздела таблицы.

Несколько ниже.

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section 
{ 
    return 30.0f; 
} 

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section 
{ 
    UIView *sampleView = [[UIView alloc] init]; 
    sampleView.frame = CGRectMake(x, y, width, height); 
    sampleView.backgroundColor = [UIColor blackColor]; 
    return sampleView; 
} 

и включают в себя протокол UITableViewDelegate.

@interface TestViewController : UIViewController <UITableViewDelegate>