UITableViewCell separator not showing up

后端 未结 8 1511
梦如初夏
梦如初夏 2020-12-09 15:13

I made a custom UITableViewCell in IB, but for some reason, despite the single line option for separator being selected, there are no separator lines on my table.

Ha

8条回答
  •  春和景丽
    2020-12-09 15:45

    I found separatorStyle in UITableView class reference. It says it will add separatorStyle to the cell returned by the delegate method, tableView:cellForRowAtIndex:.

    So, I think you should modify the style property on the UITableView instance.

提交回复
热议问题