UITextFields and UITextViews have an
Note that the view you use should neither be in the view hierarchy elsewhere, nor should you add it to some superview, this is done for you.
UITextField的inputView的属性是重新设置键盘
UITextField的inputAccessoryView:
UITextFields和UITextView有一个inputAccessoryView的属性,当你想在键盘上展示一个自定义的view时,你就可以设置该属性。你设置的view就会自动和键盘keyboard一起显示了。
我们在使用UITextView和UITextField的时候,可以通过它们的inputAccessoryView属性给输入时呼出的键盘加一个附属视图,通常是UIToolBar,用于回收键盘。