I am creating a UIMenuItem (and initialized with a UIMenuController) called which has the text "Share" (refer screenshot), and I am using this for selecting some text from the textView and sharing that content.
shareMenuItem=[[UIMenuItem alloc] initWithTitle:@"Share" action:@selector(socialShare:)];
When the textView is of height such that it is occupied in a single line, the selector for the UIMenuItems that I created are not triggering.
Here is the screenshot, of the problematic scenario. Clicking on "Share" doesn't fire its respective selector. Notice that the selection caret is not fully visible.
However, when the height of textview is such that it can occupy multiple lines, the selector is triggered when the selection carets are fully visible (like the screenshot) below.
I'm stuck with issue, so please give your suggestions to solve this problem.
Thanks