I have an iOS app (9.3.5) which has an UITextView where the following is done often:
User long presses first word (User clicks “Select” - only needed if Keyboard is visible) User clicks “Define” → the definition of the first word is displayed (e.g. in Oxford Dictionary of English). I want to add a button, called “Show Definition of First Word” which does all these steps. Selecting the first word is no problem. But how to simulate the click on “Define” in the action method of my new button? I cannot find anything in UITextView or UITextViewDelegate. In macOS I would use [NSView showDefinitionForAttributedString:atPoint: ]. But I could find no such thing in UIView. Where to look for this? Gerriet. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
