-
-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathAllSetAlreadyHasDatabaseViewController.m
59 lines (44 loc) · 1.33 KB
/
AllSetAlreadyHasDatabaseViewController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// AllSetAlreadyHasDatabaseViewController.m
// Strongbox
//
// Created by Strongbox on 19/08/2020.
// Copyright © 2014-2021 Mark McGuill. All rights reserved.
//
#import "AllSetAlreadyHasDatabaseViewController.h"
@interface AllSetAlreadyHasDatabaseViewController ()
@property (weak, nonatomic) IBOutlet UIButton *buttonGo;
@end
@implementation AllSetAlreadyHasDatabaseViewController
- (BOOL)shouldAutorotate {
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ) {
return YES; /* Device is iPad */
}
else {
return NO;
}
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ) {
return UIInterfaceOrientationMaskAll; /* Device is iPad */
}
else {
return UIInterfaceOrientationMaskPortrait;
}
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
self.navigationController.navigationBar.hidden = YES;
[self.navigationController setNavigationBarHidden:YES];
self.navigationController.toolbarHidden = YES;
self.navigationController.toolbar.hidden = YES;
[self.navigationItem setPrompt:nil];
}
- (void)viewDidLoad {
[super viewDidLoad];
self.buttonGo.layer.cornerRadius = 5.0f;
}
- (IBAction)onGo:(id)sender {
self.onDone(NO, nil);
}
@end