I have a textfield that when the user clicks on slides the keyboard up. Then the scrollview adjusts so you can read what you are typing.
My problem is that once that is so, I want to let the user to continue scrolling on the screen. How can this be done?
Part 1:
The scroll view’s content size is not actually related to the size or position of the views it contains. If you want to change the size of the content view as well as the scroll view’s content, you need to call two different methods.
Part 2:
setNeedsDisplay marks the entire view as needing display. To cause it to display only the visible part, you need to use setNeedsDisplayInRect:visibleRect.
Assuming the view is at the top-left corner (its frame’s origin is 0) and the scroll view does not allow zooming, the visible rect can be found using the scroll view’s content offset and bounds size.
You could also choose to draw a part of the visible rect if only part changes.
And you can also look the following example :
TPKeyboardAvoiding