Quellcode durchsuchen

Make the keyboard dark in the iOS 7 search bars

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Marc Etcheverry vor 11 Jahren
Ursprung
Commit
635b2798e3
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      Sources/VLCAppDelegate.m

+ 5 - 0
Sources/VLCAppDelegate.m

@@ -61,6 +61,11 @@
 
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
+    // For UISearchBar as well
+    if (SYSTEM_RUNS_IOS7_OR_LATER) {
+        [[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceDark];
+    }
+
     BWQuincyManager *quincyManager = [BWQuincyManager sharedQuincyManager];
     [quincyManager setSubmissionURL:@"http://crash.videolan.org/crash_v200.php"];
     [quincyManager setDelegate:self];