UITableView中没有数据时,让其不显示下划线的两种方法

来源:互联网 发布:明泰科技 建站 编辑:程序博客网 时间:2024/05/20 00:13
</pre><pre name="code" class="objc">first method:- (void)viewDidLoad{   [super viewDidLoad];//此处写入让其不显示下划线的代码self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];`}


sencond method:

   [super viewDidLoad];//此处写入让其不显示下划线的代码self.tableView.tableFooterView = [[UIView alloc]init];}

                                             
1 0
原创粉丝点击