文章出處

1.撥打電話:

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://68979"]]; //直接撥打
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://68979"]]; //彈出確訂提示


2.調用Safari打開網址:

 

 

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

 

3.發送郵件:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://260548721@qq.com"]];


4.發送短信:

 

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

 

5.打開Appstore:

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.apple.com/us/app/id%@", AppID]]];

 

 

IOS 8開始支持跳轉到應用的設置頁:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()