Browse Source

Make the keyboard dark in the iOS 7 search bars

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Marc Etcheverry 11 years ago
parent
commit
635b2798e3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Sources/VLCAppDelegate.m

+ 5 - 0
Sources/VLCAppDelegate.m

@@ -61,6 +61,11 @@
 
 
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 - (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];
     BWQuincyManager *quincyManager = [BWQuincyManager sharedQuincyManager];
     [quincyManager setSubmissionURL:@"http://crash.videolan.org/crash_v200.php"];
     [quincyManager setSubmissionURL:@"http://crash.videolan.org/crash_v200.php"];
     [quincyManager setDelegate:self];
     [quincyManager setDelegate:self];