Если вы создали экземпляр UIView
для заголовка UITableView, то вы можете получить к нему доступ, как и к любому другому объекту.В этом примере footerView
представляет собой UIView
.
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
if ( footerView == nil )
{
footerView = [[UIView alloc] init];
[footerView addSubview: someSubview];
}
//return the view for the footer
if ( section == 2 )
return footerView;
return nil;
}