small status bar fix
This commit is contained in:
parent
f1efd9b8c9
commit
aeba1ef3d9
3 changed files with 18 additions and 5 deletions
Binary file not shown.
|
@ -17,6 +17,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@property (weak, nonatomic) IBOutlet UILabel *FlashBackTitle;
|
@property (weak, nonatomic) IBOutlet UILabel *FlashBackTitle;
|
||||||
|
@property (weak, nonatomic) IBOutlet UINavigationBar *navigationBar;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -310,12 +310,24 @@ NSString *backupNameSelected;
|
||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
|
||||||
|
if (@available(iOS 11.0, *)) {
|
||||||
|
if (self.navigationController.navigationBar.prefersLargeTitles){
|
||||||
|
UIButton *createBackupButton = [UIButton buttonWithType:UIButtonTypeSystem];
|
||||||
|
[createBackupButton addTarget:self action:@selector(createBackup:) forControlEvents:UIControlEventTouchUpInside];
|
||||||
|
[createBackupButton setImage:[UIImage imageNamed:@"create"] forState:UIControlStateNormal];
|
||||||
|
createBackupButton.tintColor = [UIColor systemBlueColor];
|
||||||
|
self.navigationItem._largeTitleAccessoryView = createBackupButton;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"create"] style:UIBarButtonItemStylePlain target:self action:@selector(createBackup:)];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"create"] style:UIBarButtonItemStylePlain target:self action:@selector(createBackup:)];
|
||||||
|
}
|
||||||
|
|
||||||
UIButton *createBackupButton = [UIButton buttonWithType:UIButtonTypeSystem];
|
|
||||||
[createBackupButton addTarget:self action:@selector(createBackup:) forControlEvents:UIControlEventTouchUpInside];
|
|
||||||
[createBackupButton setImage:[UIImage imageNamed:@"create"] forState:UIControlStateNormal];
|
|
||||||
createBackupButton.tintColor = [UIColor systemBlueColor];
|
|
||||||
self.navigationItem._largeTitleAccessoryView = createBackupButton;
|
|
||||||
// Do any additional setup after loading the view.
|
// Do any additional setup after loading the view.
|
||||||
|
|
||||||
selectedBackupPickerView.delegate=self;
|
selectedBackupPickerView.delegate=self;
|
||||||
|
|
Reference in a new issue