indentationLevelForRowAtIndexPath not indenting custom cell

前端 未结 9 1790
陌清茗
陌清茗 2020-12-01 12:51

I have overridden the tableView:indentationLevelForRowAtIndexPath method in my UITableViewController derived class as follows:

- (N         


        
9条回答
  •  一生所求
    2020-12-01 13:12

    Constrain to the leading edge of the content view of the custom table cell you have in interface builder. For a simple margin, this seems to suffice. If you need to change the indentation programmatically, see Dean's answer. Or https://stackoverflow.com/a/7321461/5000071.

提交回复
热议问题