开发者

iPhone4 - Call default browser with and redirect to a designated url

开发者 https://www.devze.com 2023-03-10 07:19 出处:网络
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 t

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

精彩评论

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