简体   繁体   English

更改iPhone上的默认应用程序

[英]change default application on iphone

Is there any way to change the default application? 有什么办法可以更改默认应用程序? Eg change mailto: behavior to launch 3rd party application when user selects an email address anywhere on iphone OR launch SMS application when user selects a phone number. 例如,更改mailto:当用户在iphone上的任意位置选择电子邮件地址时启动第三方应用程序的行为,或者在用户选择电话号码时启动SMS应用程序的行为。

Thanks for your help! 谢谢你的帮助!

Nicolas is correct. 尼古拉斯是正确的。 To use some of the default applications (you mentioned SMS) you simply need to call the appropriate URL handler. 要使用某些默认应用程序(您提到过SMS),只需调用适当的URL处理程序即可。

Please refer to: http://iosdevelopertips.com/cocoa/launching-other-apps-within-an-iphone-application.html 请参考: http : //iosdevelopertips.com/cocoa/launching-other-apps-within-an-iphone-application.html

You cannot override the default handlers. 您不能覆盖默认处理程序。 Apple have made it very clear that they do not want to confuse the user by providing applications that duplicate basic iPhone functionality. 苹果已经明确表示,他们不想通过提供重复基本iPhone功能的应用程序来使用户感到困惑 The most famous case is Google Voice ( http://www.techcrunch.com/2009/07/27/apple-is-growing-rotten-to-the-core-and-its-likely-atts-fault/ ) 最著名的案例是Google语音( http://www.techcrunch.com/2009/07/27/apple-is-growing-rotten-to-the-core-and-its-likely-atts-fault/

You need to use URL handlers. 您需要使用URL处理程序。 I'm not sure if you can override default handlers (mailto: http:...), but have a look at this guide: 我不确定是否可以覆盖默认处理程序(mailto:http:...),但请查看此指南:

http://www.mobileorchard.com/apple-approved-iphone-inter-process-communication/ http://www.mobileorchard.com/apple-approved-iphone-inter-process-communication/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM