I have a UITextField
where I am implementing autocomplete in a UIPopoverController
. I would like the popover's arrow to point directly at the caret (the way Mail and Messages does in the To: field). How do I get a CGRect
that represents the location of the caret?
Note: I am not interested in the position in the text string, which is what this question deals with. I need a way to get the pixel location of the caret relative to the frame of the UITextField
.