Explorar el Código

Make the keyboard dark in the iOS 7 search bars

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Marc Etcheverry hace 11 años
padre
commit
635b2798e3
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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];