-1

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.

Allen Kim
  • 3
  • 2
  • Do you mean https://developer.apple.com/documentation/uikit/uireferencelibraryviewcontroller ? – matt May 06 '21 at 04:56

1 Answers1

0

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.

erictruong
  • 303
  • 3
  • 14
  • Sorry, I already know what you gave me feedback I wanted to know how to run the lookup right away. – Allen Kim May 06 '21 at 04:44
  • Oh. So you can initial UIReferenceLibraryViewController with the term then present it. – erictruong May 06 '21 at 04:56
  • I would like to thank you additionally I have been thinking that my question seems to be wrong. Next time I'll post the question a little more clearly. – Allen Kim May 06 '21 at 05:46