Fix picker view colur
This commit is contained in:
parent
4b06635f11
commit
9db76badd9
4 changed files with 1 additions and 11 deletions
|
@ -28,10 +28,8 @@
|
||||||
|
|
||||||
[UINavigationBar appearance].standardAppearance = [[UINavigationBarAppearance alloc] initWithBarAppearance:barAppearance];
|
[UINavigationBar appearance].standardAppearance = [[UINavigationBarAppearance alloc] initWithBarAppearance:barAppearance];
|
||||||
[UINavigationBar appearance].scrollEdgeAppearance = [UINavigationBar appearance].standardAppearance;
|
[UINavigationBar appearance].scrollEdgeAppearance = [UINavigationBar appearance].standardAppearance;
|
||||||
[UINavigationBar appearance].overrideUserInterfaceStyle = UIUserInterfaceStyleDark;
|
|
||||||
|
|
||||||
[UITabBar appearance].standardAppearance = [[UITabBarAppearance alloc] initWithBarAppearance:barAppearance];
|
[UITabBar appearance].standardAppearance = [[UITabBarAppearance alloc] initWithBarAppearance:barAppearance];
|
||||||
[UITabBar appearance].overrideUserInterfaceStyle = UIUserInterfaceStyleDark;
|
|
||||||
} else {
|
} else {
|
||||||
[UINavigationBar appearance].backgroundColor = barBackground;
|
[UINavigationBar appearance].backgroundColor = barBackground;
|
||||||
[UITabBar appearance].backgroundColor = barBackground;
|
[UITabBar appearance].backgroundColor = barBackground;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>UIUserInterfaceStyle</key>
|
<key>UIUserInterfaceStyle</key>
|
||||||
<string>UIUserInterfaceStyleDark</string>
|
<string>Dark</string>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
|
|
|
@ -8,12 +8,8 @@
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
|
||||||
|
|
||||||
@interface UIAlertAction (Common)
|
@interface UIAlertAction (Common)
|
||||||
+ (UIAlertAction *)okAction;
|
+ (UIAlertAction *)okAction;
|
||||||
+ (UIAlertAction *)okActionWithHandler:(void (^)(UIAlertAction *action))handler;
|
+ (UIAlertAction *)okActionWithHandler:(void (^)(UIAlertAction *action))handler;
|
||||||
+ (UIAlertAction *)cancelAction;
|
+ (UIAlertAction *)cancelAction;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
|
||||||
|
|
|
@ -348,9 +348,7 @@ NSString *backupNameSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
-(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
|
-(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
|
||||||
|
|
||||||
return _backupFolderArray.count;
|
return _backupFolderArray.count;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{
|
-(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{
|
||||||
|
@ -358,9 +356,7 @@ NSString *backupNameSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
-(NSString*)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component{
|
-(NSString*)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component{
|
||||||
|
|
||||||
return _backupFolderArray[row];
|
return _backupFolderArray[row];
|
||||||
|
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Reference in a new issue