openURL
is not working on iOS 9 for system schemes like http
, tel
, telprompt
after compiling via Xcode 7, same code works fine on iOS 8, canOpenURL
always returns YES
.
Any suggestions?
Thank you!
NSURL *testURL = [NSURL URLWithString:@"http://www.apple.com"];
if ([[UIApplication sharedApplication] canOpenURL:testURL]) {
NSLog(@"canOpenURL");
[[UIApplication sharedApplication] openURL:testURL];
}