开发者

Custom move accessory for UITableViewCell

开发者 https://www.devze.com 2023-01-13 05:41 出处:网络
Is it possible to use a custom view as the move access开发者_如何学Goory that appears on the right hand side of the UITableViewCell when a UITableView is in editing mode?No.UIKit has no support for th

Is it possible to use a custom view as the move access开发者_如何学Goory that appears on the right hand side of the UITableViewCell when a UITableView is in editing mode?


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.

0

精彩评论

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