Swift - UITableView set separator style

前端 未结 5 1187
别跟我提以往
别跟我提以往 2021-02-04 07:53

How do i set the Separator Style of my UITableView in Swift? I want to get rid of the separator so that there is no grey line between the cells in my table view. Any suggestions

5条回答
  •  难免孤独
    2021-02-04 08:56

    For those who are looking for Swift 2 and 3 notation :

    tableView.separatorStyle = UITableViewCellSeparatorStyle.None;
    

提交回复
热议问题