UITableview 使用的小知识点

1.同一个section中 cell 之间 分割线 到屏幕 的距离 是可调的。

    _tableview.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0);  即可

 

2.点击cell进入下一个vc,返回时,cell仍然是选中状态,去掉这种选择状态

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

    [tableView deselectRowAtIndexPath:indexPath animated:YES];

   ......

}

即可。

posted on 2014-08-06 12:14  benebin  阅读(97)  评论(0)    收藏  举报