I am developing an application using Google drive sdk, in Xcode 5 its working fine, but now I open it in xcode6 and write this code for Safariviewcontroller
NSURL *URL = [NSURL URLWithString:@"https://accounts.google.com/SignUp"];
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 90000
if (URL) {
if ([SFSafariViewController class] != nil) {
SFSafariViewController *sfvc = [[SFSafariViewController alloc] initWithURL:URL];
sfvc.delegate = self;
[self presentViewController:sfvc animated:YES completion:nil];
} else {
if (![[UIApplication sharedApplication] openURL:URL]) {
NSLog(@"%@%@",@"Failed to open url:",[URL description]);
}
}
}
#else
[[UIApplication sharedApplication] openURL:URL];
#endif
but problem is inXcode6.3.1
__IPHONE_OS_VERSION_MAX_ALLOWED
is __IPHONE_8_3
and it always make it false. I tested in my iphone5c with iOS9.2
but it always return False and got to the else part. please help me...
Thanks in advance