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

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

我的做法如下,很简单:

UIView *view = [UIView new];

    view.backgroundColor = [UIColor clearColor];

    [_tableview setTableFooterView:view];

    [self.view addSubview:_tableview];

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

原文地址:https://www.cnblogs.com/ruixin2222/p/4831298.html