openUrl
时间:2014-06-02 07:25:27
收藏:0
阅读:181
?UIApplication有个功能十分强大的openURL:方法
- (BOOL)openURL:(NSURL*)url;
-
?openURL:方法的部分功能有
?打电话
UIApplication *app = [UIApplication sharedApplication];
[app openURL:[NSURL URLWithString:@"tel://10086"]];
?发短信
[app openURL:[NSURL URLWithString:@"sms://10086"]];
?发邮件
[app openURL:[NSURL URLWithString:@"mailto://12345@qq.com"]];
?打开一个网页资源
[app openURL:[NSURL URLWithString:@"http://ios.itcast.cn"]];
?打开其他app程序
评论(0)