indentationLevelForRowAtIndexPath not indenting custom cell

前端 未结 9 1793
陌清茗
陌清茗 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:27

    The indentation level is a property of the UITableViewCell itself. Try setting it on the cell when you create it, and return this value in tableView:indentationLevelForRowAtIndexPath:

提交回复
热议问题