In the context of the iPhone:
I have a UIScrollView
containing a UIImage
. When the user taps the screen inside the UIImage
, a
One possible workaround could be to respond to the scrollViewDidScroll
delegate method check to see if the UITextField
is hidden again, then re-scroll if necessary. Seems like a bit of a hack, but it sounds like the UIScrollView
auto scrolling behavior is what's getting in your way, and if there's no way to directly affect it, the only option is to work around it. There is also the disadvantage, however, that if you do this then it appears to scroll twice.
If the auto-scrolling behavior happens only when the UITextField
expands beyond the edge of the screen, you could also move the field to stay completely visible if it looks like it's going to expand beyond the edge of the screen.