需要一进VIEW就显示键盘。 在viewDidLoad函数中调用:[yourUITextField becomeFirstResponder]; 转载于:https://www.cnblogs.com/sinodragon21/p/4820038.html