Remove border in each table cell in swift

前端 未结 4 1538
攒了一身酷
攒了一身酷 2021-02-19 11:25

I would like to remove border bottom line of each Question table rows. Another thing is that I would like to remove the left padding space in each row. How to implement it in s

4条回答
  •  [愿得一人]
    2021-02-19 11:40

    Another simple solution that worked for me for removing bottom lines (separators) just for empty rows - tested on Swift 4, Xcode 9 & iOS 11:

    class viewController: UIViewController {
    
        @IBOutlet var tableView: UITableView!
    
        override func viewDidLoad() {
            super.viewDidLoad()
    
            tableView?.tableFooterView = UIView()
    
        }
    }
    

提交回复
热议问题