App调用safar

/调用safar打开网页

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.cnblogs.com/foxmin"]];

////调用app store (省略号后面加的是产品的id等一些参数)

//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/app/……"]];

//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/app/ "]];

////调用电话

//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://XXXXX"]];

////调用SMS

//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://XXXXX"]];

////调用Remote

//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"remote://XXX"]];

posted @ 2018-02-24 17:32  姜晓延  阅读(138)  评论(0编辑  收藏  举报