cell

一个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)