iosswiftobjective-cuimenu

Can't run the lookup menu right from iOS?


I have one question.

The look up menu displayed when text is selected

I wonder if there is no way to run it right away.

Please refer to the screenshot below.

screenshot

No matter how much I look for, I don't know.

I've only found a UIMenuIdentifier called UIMenuLookUp.


Solution

  • UIMenuIdentifier is just constants for identifying an app's standard menus (UIMenu is quite same as AlertController).

    You can use UIMenuController and add your needed action.