Skip to content

Commit 6d0a3a7

Browse files
committed
Fixed build for < iOS 8
1 parent aefcb76 commit 6d0a3a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

BitStore/Controller/Scan/ScanViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ - (void)viewDidLoad {
4747
// camera access failed
4848
UIBAlertView* av = [[UIBAlertView alloc] initWithTitle:@"Camera error" message:@"Unable to access the camera. Please enable camera access for BitStore inside the privacy settings." cancelButtonTitle:l10n(@"okay") otherButtonTitles:@"Open Settings", nil];
4949
[av showWithDismissHandler:^(NSInteger selectedIndex, NSString *selectedTitle, BOOL didCancel) {
50+
#ifdef __IPHONE_8_0
5051
if (!didCancel) {
5152
BOOL canOpenSettings = (&UIApplicationOpenSettingsURLString != NULL);
5253
if (canOpenSettings) {
5354
NSURL* url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
5455
[[UIApplication sharedApplication] openURL:url];
5556
}
5657
}
58+
#endif
5759
}];
5860
[self performSelector:@selector(close:) withObject:self afterDelay:0.01];
5961
}

0 commit comments

Comments
 (0)