2013-03-10 91 views

回答

3

您可以通过实现在UITableViewController以下UITableViewDelegate方法添加页眉或页脚的观点到UITableView

- (CGFloat)tableView:(UITableView *)tableView 
      heightForHeaderInSection:(NSInteger)section 
{ 
    CGFloat height = 100.0; // this should be the height of your admob view 

    return height; 
} 

- (UIView *)tableView:(UITableView *)tableView 
      viewForHeaderInSection:(NSInteger)section 
{ 
    UIView *headerView = myAdMobView; // init your view or reference your admob view 

    return headerView; 
} 

更多informtation,看到documentation on the UITableViewDelegate protocol

0

设置表的headerView & footerView

相关问题