I have it in the UITextField by tapping on the keyboard and the view scrolls automatically To bring it up from the keyboard if necessary.
I have a way, which is sometimes called when the user presses the return key while editing a text field and I only move the next text field to the first responder position. However, if it is behind the keyboard, it does not scroll up and reveal itself.
I know that using the startups method > is changing the status or size of the scene, but I do not know the view How much should walk, etc.? Is there an easy way to do this? I do not think Apple has explained this in the documentation and I have already tried Googling, but did not come up with a decent solution.
Any help would be greatly appreciated.
Thank you.
afaik There really is no developer friendly way to do this. Copy and paste from another project, this is what came with me:
- (zero) scrollviewtocenter: (UIView *) v {CGFloat windowLeft = 200.0f; CGFloat y = v.frame.origin.y- (window lift - v.frame.size.height) / 2; If (y> gtc:) if (y <0.0f) y = 0.0f; [ScrollView setContentOffset: CGPointMake (0.0F, Y) Animated: Yes];} Keyboard On exit, the window is the number of left picks, it assumes that you have UIScrollView named
Comments
Post a Comment