UIWebView scrolling down on input focus iOS 6 only

后端 未结 3 1593
面向向阳花
面向向阳花 2021-02-02 15:45

I\'m loading a UIWebView in a modal. The web page has some inputs that work exactly as intended in iOS 5. However in iOS 6, anytime an input gets focus, the keyboard is doing it

3条回答
  •  情话喂你
    2021-02-02 16:19

    The checked answer on this post has your answer: How to make a UITextField move up when keyboard is present?

    In short, you need to move up the view containing the inputs which are being pushed out of view. The post also contains sample code on how to do it.

    Hope this helps.

提交回复
热议问题