Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 Return 按钮更改为 Go 按钮。有什么建议么??
谢谢,
*yourtextfieldname*.returnKeyType=UIReturnKeyGo;
UITextField 和 UITextView 都遵循 UITextInputTraits 协议,该协议定义了一个returnKeyType属性。把它设置为UIReturnKeyGo,你就可以了,呃,去吧。
returnKeyType
UIReturnKeyGo