2010-06-14 81 views

回答

2

您需要訪問UISearchBar本身的內部UITextField

UITextField *textField = (UITextField *)[[searchBar subviews] objectAtIndex:0]; 
textField.keyboardAppearance = UIKeyboardAppearanceAlert; 
+0

謝謝! 正確的屬性是keyboardAppearance的方式。 – 2010-06-15 17:58:54

相關問題