简体   繁体   中英

How to detect from inside iOS keyboard the UITextInput settings

I would like to customize the iOS keyboard behavior to adapt to the UITextInput inside the app that it's showing up.

For example, when someone entering a URL inside Safari, the keyboard's return key should instead say "Go", autocorrect and auto-capitalization should both be spelled.

I looked through UITextInput protocol reference , but was unable to find any information about detecting the settings. Any help is much appreciated, thanks.

您应该查看UITextInputTraits ,而UITextField支持它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM