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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -