先看看UILabel/UITextField/UITextView的区别:
html
UILabel 显示的文本只读,没法编辑,能够根据文字个数自动换行;
UITextField 可编辑本文,可是没法换行,只能在一行显示;当点击键盘上的return时会收到一个事件作一些事情。
UITextView 可编辑文本,提供换行功能。
解决UITextField/UITextView被键盘遮盖问题能够主要参考https://gist.github.com/ruandao/9429305ios
先记着,有时间作一些整理
git
参考连接:github
https://gist.github.com/ruandao/9429305app
https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.htmlui