I have subclasses of UIWebView to add custom UIMenuController functionality, and it worked pretty well up to iOS 9. I'm not sure what has changed, but now I am faced with a situation where I use a link that should menu, the menu appears briefly, but quits (without any talk with me).
I find it difficult to determine where this dismissal comes from. I am seeing a UIMenuControllerDidHideMenuNotification notification, and it really is called right after the menu disappears, but I find it difficult to find the reason for dismissal.
I understand that there are many different problems that may be hiding, but I wonder if someone has experienced something like this before? Is there a way to somehow track the reason for dismissal?

Lizza source share