cell

2016-12-03  本文已影响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))];

上一篇 下一篇

猜你喜欢

热点阅读