ios - Open NSURL with safari in iOS8 -
i have code open url in safari:
[[uiapplication sharedapplication] openurl:[nsurl urlwithstring: @"http://www.google.com"]];
but works on ios9, , ios8 doesn't work. have clue can be?
thanks
in objective c
nsurl *url = [nsurl urlwithstring:@"some url"]; if ([[uiapplication sharedapplication] canopenurl:url]) { [[uiapplication sharedapplication] openurl:url]; }
Comments
Post a Comment