在iPhone程序中呼叫Safari [英] call safari in iphone program
问题描述
我正在开发一个应用程序,当我单击一个按钮时,我需要在其中调用safari. 请告诉我该怎么做 我应该为此创建一个新视图吗? 请帮助.... 如果可能的话,还请告诉我有关导入消息框和callmanager的信息..... (不是在谈论从我的应用程序发送消息或调用...知道这是不可能的...我只想调用内置应用程序). 还想确认当我调用这些内置应用程序时,我的应用程序是否会关闭....
i am working on an application in which i needs to call safari when i click on a button..... please tell me how to do this should i create a new view for this ? kindly help.... please also tell about importing messagebox and callmanager if possible..... (not talking about sending msg or call from my app ...know that is not possible... i want to call inbuilt applications only) . also wanto confirm that will my app close when i will call these inbuilt applications....
谢谢....
推荐答案
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://9016098909891"]];
您可以使用上述功能从iphone拨打电话
You can use the above function to call from the iphone
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
使用它来打开safari等..希望您知道该怎么做....
USe this to open safari and so on.. hope yo got the idea what exactly to do....
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://9016098909891"]];
使用上面的命令从iPhone发送短信
uSe the above to send SMS from iphone
快乐的打法......
hAPPY cODING....
这篇关于在iPhone程序中呼叫Safari的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!