-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartViewController.m
51 lines (37 loc) · 1.4 KB
/
StartViewController.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
//
// ViewController.m
//
// Copyright © 2021 Jumio Corporation All rights reserved.
//
#import "StartViewController.h"
@interface StartViewController ()
@end
@implementation StartViewController
#pragma mark - Rotation handling
- (BOOL) shouldAutorotate {
return YES;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
#pragma mark - Status bar handling
- (UIStatusBarStyle) preferredStatusBarStyle {
return UIStatusBarStyleLightContent;
}
#pragma mark - Helper
- (void) showAlertWithTitle:(NSString *)title message:(NSString *)message {
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title
message:message
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *okAction = [UIAlertAction
actionWithTitle:@"OK"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action)
{
}];
[alertController addAction:okAction];
[self presentViewController:alertController
animated:YES
completion:nil];
}
@end