设置键盘return键样式

textField.returnKeyType = UIReturnKeySend;

typedef NS_ENUM(NSInteger, UIReturnKeyType) {

UIReturnKeyDefault,

UIReturnKeyGo,//去往

UIReturnKeyGoogle,

UIReturnKeyJoin,//加入

UIReturnKeyNext,//下一步

UIReturnKeyRoute,

UIReturnKeySearch,//搜索

UIReturnKeySend,//发送

UIReturnKeyYahoo,

UIReturnKeyDone,//完成

UIReturnKeyEmergencyCall,

UIReturnKeyContinue NS_ENUM_AVAILABLE_IOS(9_0),

};

当然,要显示中文,还得设置info.plist中

Localization native development region 为 cn

中文输入法键盘都是默认中文的

原文地址:https://www.cnblogs.com/huaida/p/11713378.html