views:

21

answers:

1

Dear all,

I am using a UITableView with style is UITableViewStyleGrouped, but when I set the table is editing = YES, the content cell is scaled so the delete button is stay out side of background as below screenshot alt text

How can I make the delete button is stay inside of white background?

Thanks!

+3  A: 

Try setting cell's shouldIndentWhileEditing property to NO, or return appropriate value from delegate's tableView:shouldIndentWhileEditingRowAtIndexPath: method.

Note also that delegate's method has higher priority and overrides the value of cell's property

Vladimir
Thanks Vladimir, it's working well
Son Nguyen