MSCMoreOptionTableViewCell icon indicating copy to clipboard operation
MSCMoreOptionTableViewCell copied to clipboard

iOS11 beta not showing more button.

Open monish152 opened this issue 7 years ago • 5 comments

monish152 avatar Jun 13 '17 07:06 monish152

Looks like it's not an easy task to fix that. The delete confirmation view that is used to add the custom buttons doesn't exist anymore in iOS 11. Instead, a UISwipeActionPullView is added directly to the UITableViewWrapperView, not the MSCMoreOptionTableViewCell. So we would have to hook into the table view, not the cell.

OTOH, iOS 11 adds its own mechanism for swipable cells (-tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:).

futuretap avatar Jun 21 '17 13:06 futuretap

I stumbled upon the same issue today. Found a possible solution in Apple's forums, but yeah, it seems like a real challenge to bring that to iOS11 and lesser versions at the same time.

petarov avatar Oct 13 '17 10:10 petarov

Thanks for the link!

I think the best solution would be to improve the documentation and the demo project to show how to use this code for iOS 10 and below and the original Apple solution for iOS 11 at the same time?

What are your thoughts about that?

scheinem avatar Oct 13 '17 10:10 scheinem

Thanks for the feedback @scheinem. I'm perfectly fine with that.

I haven't tested the linked solution yet. I'm not a iOS developer, but I do need to make a couple of fixes in an app that uses MSCMoreOptionTableViewCell, so anything works for me at this point. 😉

petarov avatar Oct 13 '17 12:10 petarov

Solved it by using the gist by @scheinem. Thanks a lot!

petarov avatar Oct 17 '17 13:10 petarov