开发者

Delete button is stay out side of UITableViewStyleGrouped cell background

I am using a UITableView with style is UITableViewStyleGrouped, but when I set the table is edit开发者_开发知识库ing = YES, the content cell is scaled so the delete button is stay out side of background as below screenshot

Delete button is stay out side of UITableViewStyleGrouped cell background

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜