cell

作者: 碧玉小瑕 | 来源:发表于2016-12-03 15:32 被阅读8次

一个cell的contentView包括headderView,和footerView,如果有的话。

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

{

UIView*hView = [[UIViewalloc]initWithFrame:CGRectMake(0,0,DEVICE_WIDTH,GMLAYOUTRATE(16))];

hView.backgroundColor= [UIColorclearColor];

returnhView;

}

/*

*

*/

- (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath

{

returnGMLAYOUTRATE(187+16);

}

_backView= [[UIViewalloc]initWithFrame:CGRectMake(0,16,DEVICE_WIDTH-2*GMLAYOUTRATE(18),GMLAYOUTRATE(187+16-16))];

相关文章

网友评论

      本文标题:cell

      本文链接:https://www.haomeiwen.com/subject/ncjcmttx.html