How to give space between two cells in tableview?

前端 未结 26 1482
谎友^
谎友^ 2020-11-29 00:11

I want a space between two cell in table view,

I want cell like this,

\"enter<

26条回答
  •  眼角桃花
    2020-11-29 00:46

    in your cellForRowAt

    cell.layer.borderWidth = 2
    cell.layer.cornerRadius = 10
    cell.layer.borderColor = UIColor.systemBackground.cgColor
    

提交回复
热议问题