iOS笔记-去除tableview无用分割线的做法

假如我们需要的tableview只有几行,并且行高很小,这样我们的tableview底部就有很多空的cell行,也就会许多无用的分割线,看起来很难看。

我的做法如下,很简单:

UIView *view = [UIView new];

    view.backgroundColor = [UIColor clearColor];

    [_tableview setTableFooterView:view];

    [self.view addSubview:_tableview];

 

_tableview是这个界面的tableview咯,只要一个空的view作为我们tableview的底部就可以办到了。屡试不爽噢~

posted @ 2015-09-23 09:36  指尖上跳跃的阳光  阅读(236)  评论(1编辑  收藏  举报