daspianist
daspianist

Reputation: 5495

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.

Upvotes: 0

Views: 115

Answers (1)

Allen
Allen

Reputation: 6505

you should look at UITextInputTraits, and UITextField supports it.

Upvotes: 1

Related Questions