tableview隐藏分割线的方法

隐藏tableview的分割线

方法1:

设置tableview的separatorStyle为UITableViewCellSeparatorStyleNone,

myTableView.separatorStyle = UITableViewCellSeparatorStyleNone

方法2:

还有一种方法是定义一个空的UIView,然后将这个UIView设置为tableview的footer

UIView *footer =[[UIView alloc] initWithFrame:CGRectZero]

myTableView.tableFooterView = footer;

[footer release];

原文地址:https://www.cnblogs.com/Ninesday/p/5369608.html