From 9db76badd99732e94a15f825483ce5fec9cc73d3 Mon Sep 17 00:00:00 2001 From: 23 Aaron Date: Sun, 2 Feb 2020 15:33:02 -0500 Subject: [PATCH] Fix picker view colur --- FlashBack/AppDelegate.m | 2 -- FlashBack/Info.plist | 2 +- FlashBack/UIAlertAction+Common.h | 4 ---- FlashBack/ViewController.m | 4 ---- 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/FlashBack/AppDelegate.m b/FlashBack/AppDelegate.m index 706c1b5..a1f1585 100755 --- a/FlashBack/AppDelegate.m +++ b/FlashBack/AppDelegate.m @@ -28,10 +28,8 @@ [UINavigationBar appearance].standardAppearance = [[UINavigationBarAppearance alloc] initWithBarAppearance:barAppearance]; [UINavigationBar appearance].scrollEdgeAppearance = [UINavigationBar appearance].standardAppearance; - [UINavigationBar appearance].overrideUserInterfaceStyle = UIUserInterfaceStyleDark; [UITabBar appearance].standardAppearance = [[UITabBarAppearance alloc] initWithBarAppearance:barAppearance]; - [UITabBar appearance].overrideUserInterfaceStyle = UIUserInterfaceStyleDark; } else { [UINavigationBar appearance].backgroundColor = barBackground; [UITabBar appearance].backgroundColor = barBackground; diff --git a/FlashBack/Info.plist b/FlashBack/Info.plist index 3c5da5e..d517030 100755 --- a/FlashBack/Info.plist +++ b/FlashBack/Info.plist @@ -3,7 +3,7 @@ UIUserInterfaceStyle - UIUserInterfaceStyleDark + Dark CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable diff --git a/FlashBack/UIAlertAction+Common.h b/FlashBack/UIAlertAction+Common.h index 71651c6..8565443 100644 --- a/FlashBack/UIAlertAction+Common.h +++ b/FlashBack/UIAlertAction+Common.h @@ -8,12 +8,8 @@ #import -NS_ASSUME_NONNULL_BEGIN - @interface UIAlertAction (Common) + (UIAlertAction *)okAction; + (UIAlertAction *)okActionWithHandler:(void (^)(UIAlertAction *action))handler; + (UIAlertAction *)cancelAction; @end - -NS_ASSUME_NONNULL_END diff --git a/FlashBack/ViewController.m b/FlashBack/ViewController.m index 470cdac..18795b4 100755 --- a/FlashBack/ViewController.m +++ b/FlashBack/ViewController.m @@ -348,9 +348,7 @@ NSString *backupNameSelected; } -(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{ - return _backupFolderArray.count; - } -(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{ @@ -358,9 +356,7 @@ NSString *backupNameSelected; } -(NSString*)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component{ - return _backupFolderArray[row]; - } @end