iphone - UITextField event handling -
is possible detect @ text position user tabs uitextfield (just tabbing not editing, text field read-only)? e.g. capturing touches began event , processing tabbed position?
yes, set delegate uitextfield , can tell user doing in text field. see uitextfield class reference details.
edit: ok, since it's readonly text field, should subclass uitextfield , override begintrackingwithtouch:withevent: , endtrackingwithtouch:withevent: can see touch down , touch occurred withing uicontrol (uitextfield uicontrol). methods called uitouch object tells touch occurred within uicontrol (uitextfield).
i don't know why want this. anyway there you'll have figure out in text touch occurred given touch x,y offset in control. that'll fun task solve.
Comments
Post a Comment