iPhone4 - Call default browser with and redirect to a designated url
Like this question, I would like to write an a开发者_如何学编程pp for iPhone4 to call default browser with and redirect to a designated url, could someone please suggest the code for this action?
Use the -[UIApplication openURL:]
method, which is accessed through the sharedApplication
method of UIApplication
.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
精彩评论