简体   繁体   中英

Custom move accessory for UITableViewCell

UITableView处于编辑模式时,是否可以使用自定义视图作为UITableViewCell右侧显示的移动附件?

No. UIKit has no support for this, and attempting to override it is risky and likely to break with future versions of iOS. This is strongly recommended against.

I don't think it's possible without using some sort of private API. What you could do is modify your accessoryView while the tableview is in edit mode, but I don't think you can change the view that the user "grabs onto."

Could you provide an example of what you're trying to accomplish? Maybe there's something else that can get you the functionality you're looking for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM