UITextField返回键文本从"Done"Post"“帮助”



我已经创建了一个示例应用程序,它具有textField,并且应该完成它的返回键类型。我想把文字从"Done"改为"Post"

我真的需要做这件事。

请帮帮我?

现在apple只支持以下类型:

typedef enum {
   UIReturnKeyDefault,//Set the text of the return key to “return”.
   UIReturnKeyGo,//Set the text of the return key to “Go”.
   UIReturnKeyGoogle,//Set the text of the return key to “Google”.
   UIReturnKeyJoin,//Set the text of the return key to “Join”.
   UIReturnKeyNext,//Set the text of the return key to “Next”.
   UIReturnKeyRoute,//Set the text of the return key to “Route”.
   UIReturnKeySearch,//Set the text of the return key to “Search”.
   UIReturnKeySend,//Set the text of the return key to “Send”.
   UIReturnKeyYahoo,//Set the text of the return key to “Yahoo”.
   UIReturnKeyDone,//Set the text of the return key to “Done”.
   UIReturnKeyEmergencyCall,//Set the text of the return key to “Emergency Call”.
} UIReturnKeyType;

您将获得操作系统中定义的返回键和键盘类型。除非你想尝试破解键盘的视图层次结构来改变按钮,这将是一个非常糟糕的计划。(这里的标准建议是向苹果提交bug报告,让他们知道你想要更多/不同的选项。)

最新更新