开发者

Delete button is stay out side of UITableViewStyleGrouped cell background

开发者 https://www.devze.com 2023-01-19 11:44 出处:网络
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 backgrou

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

精彩评论

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