我目前正試圖設置全局的鍵盤樣式,但我的方法不起作用。 我嘗試了用UIAppearance
,並把此行的代碼的AppDelegate裏面:如何爲整個應用程序設置UIKeyboard風格?
[[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceAlert];
但我在控制檯上得到如下:
[UISearchBarTextField _UIAppearance_setKeyboardAppearance:]: unrecognized selector sent to instance 0xa1897e0
任何想法如何解決這個問題?
您是否找到解決方案? – BlueVoodoo