开发者

How to resize the uitableviewcell accessory buttons

开发者 https://www.devze.com 2023-01-07 02:28 出处:网络
I want to ask whether it is possible to resize the accessory buttons of a UITableViewCell. Also I want to resize the buttons in edit mode. For example in normal mode, I want a bigge开发者_运维知识库r

I want to ask whether it is possible to resize the accessory buttons of a UITableViewCell. Also I want to resize the buttons in edit mode. For example in normal mode, I want a bigge开发者_运维知识库r detail disclosure button, and in edit mode I want a bigger delete button and bigger red minus button. I have this issue because I want to use it on the iPad, which has a bigger screen than the iPhone.


You cannot modify the existing edit buttons, but you can provide your own with the accessoryView and editingAccessoryView properties on UITableViewCell. These let you change the view displayed on the right-hand side of the cell.

To change the view on the left you need to have a custom cell and override setEditing: to insert/animate-in your own custom view.

0

精彩评论

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

关注公众号