How to increase the UITableView separator height?

后端 未结 17 1956
花落未央
花落未央 2020-12-08 00:19

I want more space(10px) between each cell. How can I do this?

And I have added this code

tableView.separatorStyle = UITableViewCellSepar         


        
17条回答
  •  时光说笑
    2020-12-08 00:57

    I don't think it's possible using standard API. I guess you would need to subclass the UITableViewCell and add a view that simulates a separator at the bottom of the cell.

    You may want to check this question, it seems related and has some sample code: iPhone + UITableView + place an image for separator

提交回复
热议问题