当有键盘时如何在开始编辑时使UITextField向上移动?
问题: With the iOS SDK: 使用iOS SDK: I have a UIView with UITextField s that bring up a keyboard. 我有一个带有 UITextField 的 UIView , UITextField 一个键盘。 I need it to be able to: 我需要它能够: Allow scrolling of the contents of the UIScrollView to see the other text fields once the keyboard is brought up 提起键盘后,允许滚动 UIScrollView 的内容以查看其他文本字段 Automatically "jump" (by scrolling up) or shortening 自动“跳跃”(通过向上滚动)或缩短 I know that I need a UIScrollView . 我知道我需要一个 UIScrollView 。 I've tried changing the class of my UIView to a UIScrollView but I'm still unable to scroll the textboxes up or down. 我尝试将 UIView 的类更改为