I have a url which i have in NSString urlone which is coming from xml. but i run application it gives excess bad error
// urlone contains http://www.forasinvest.com/v2/index.php NSString*myurl=urlone; NSURL *url = [NSURL URLWithString:myurl]; [[UIApplication sharedApplication] openURL:url];
i think it should work fine, ok just copy paste the following for testing simply
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.forasinvest.com/v2/index.php"]];
NSString *pURL = @"xyz.cpm"; if( [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:pURL]]) [[UIApplication sharedApplication] openURL:[NSURL URLWithString:pURL]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With