开发者

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"]];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜