How do you REALLY remove Copy from UIMenuController

后端 未结 6 1256
悲&欢浪女
悲&欢浪女 2020-12-04 22:31

There apparently used to be an easy way to prevent the \"More...\" label from appearing in UIMenuController when you added more than one custom menu item. You just had to re

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 23:18

    I'm sorry for my English. But there is an idea.

    I think the method canPerformAction were called for many times but you just deal with it once. In this case ,I think there may be another UI Control has called it. For example, the UITextView control in your UIWebView.

    I guess you may generate the UI by storyboard. Not every control in storyboard has its own class. You can define a class for the response control and rewrite its canPerformAction method.

提交回复
热议问题