Second UIMenuController not Hiding

120 views
0

Tapping the cursor in a UITextView brings up a UIMenuController. Tapping Select causes the relevant text to be selected and another UIMenuController with new options to be displayed. Tapping anywhere else in the text view causes the “second” UIMenuController to hide.

Example of system behavior

I have a custom UIMenuItem that, when tapped, selects the current line of text in a UITextView and then displays the UIMenuController again for subsequent actions, however the “second” UIMenuController does not hide when tapping anywhere else in the view as expected.

Example of undesired behavior

Custom menu item action:

Changed status to publish