改变系统键盘的return键,UIReturnKeyTeype

本文介绍了UIReturnKeyType枚举类型,该类型定义了iOS设备虚拟键盘返回键的不同显示文本选项,如默认显示为“Done”、“Go”、“Next”等,适用于iPhone OS 2.0及更高版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

UIReturnKeyType
The text string displayed in the “return” key of a keyboard.

typedef enum {
   UIReturnKeyDefault,
   UIReturnKeyGo,
   UIReturnKeyGoogle,
   UIReturnKeyJoin,
   UIReturnKeyNext,
   UIReturnKeyRoute,
   UIReturnKeySearch,
   UIReturnKeySend,
   UIReturnKeyYahoo,
   UIReturnKeyDone,
   UIReturnKeyEmergencyCall,
} UIReturnKeyType;
Constants
UIReturnKeyDefault
Set the text of the return key to “return”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyGo
Set the text of the return key to “Go”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyGoogle
Set the text of the return key to “Google”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyJoin
Set the text of the return key to “Join”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyNext
Set the text of the return key to “Next”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyRoute
Set the text of the return key to “Route”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeySearch
Set the text of the return key to “Search”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeySend
Set the text of the return key to “Send”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyYahoo
Set the text of the return key to “Yahoo”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyDone
Set the text of the return key to “Done”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
UIReturnKeyEmergencyCall
Set the text of the return key to “Emergency Call”.
Available in iPhone OS 2.0 and later.
Declared in UITextInputTraits.h.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值