iPhone UISearchBar & keyboardAppearance

iphone, iphone-sdk-3.0, uisearchbar

Solution

The best way that I found to do this, if you want to do it throughout your app, is to use Appearance on UITextField. Put this in your AppDelegate on launch.

[[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceDark];

Problem

When the keyboard appears, I want to set the ``` keyboardAppearance = UIKeyboardAppearanceAlert ``` I've checked the documentation and it looks like you can only change the keyboardType. Can this be done without violating any of Apple's private API's ?

Original source

Related problems