实现代码:
1 myTableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
有三种样式:
UITableViewCellSeparatorStyleNone, 没有分割线
UITableViewCellSeparatorStyleSingleLine, 单线(默认)
UITableViewCellSeparatorStyleSingleLineEtched 内嵌线
原文:https://www.cnblogs.com/luoluosha/p/11694337.html