我有一个普通 UITableView
并且我想隐藏分隔符。为了隐藏它,我尝试使用以下属性:
我也在 viewDidLoad
中设置了它。
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.tableView.separatorColor = [UIColor clearColor];
但 UITableView
中仍然有分隔符。我怎样才能删除它?
最佳答案
对于 Objective-C
[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
对于 swift
self.tableView.separatorStyle = UITableViewCellSeparatorStyle.None;
关于ios - 普通 TableView 分隔符未删除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44195915/