You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
#if defined(__IPHONE_13_0)
UISearchTextField *searchField = obj.searchTextField;
searchField.keyboardAppearance = UIKeyboardAppearanceDefault;
#elif defined(__IPHONE_7_0)
UITextField *searchField = [obj valueForKey:@"_searchField"];
searchField.keyboardAppearance = UIKeyboardAppearanceDefault;
#else
obj.keyboardAppearance = UIKeyboardAppearanceDefault;
#endif
我的iphone是iOS 12.4,在使用Xcode 11调试时,会出现闪退,是否应该加上下面类似的处理?
#if defined(__IPHONE_13_0)
if (@available(iOS 13, *)) {
UISearchTextField *searchField = obj.searchTextField;
searchField.keyboardAppearance = UIKeyboardAppearanceDefault;
}
The text was updated successfully, but these errors were encountered: