简体   繁体   中英

UItextView iOS 7 issue

I have come to an issue with iOS 7 that I dont know how to solve. I have multiple UItextviews that present a keyboard on touch. For iOS 6 the view scrolls up and the keyboard is shown underneath, but when i run it on iOS 7 the view gets pushed underneath the keyboard. I cant figure out why the view is getting pushed down in iOS 7. i dont have any code that handles iOS 7 different.

UITextView

的UITextView

iOS 6

iOS 6

i OS 7

IOS 7

See my answers here and here .

You should set contentInset bottom to the keyboard's height and then add some code to handle the view that is below the keyboard to be scrolled to visible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM