简体   繁体   English

电话链接iPhone SDK-如何返回到应用

[英]Phone Links iPhone SDK - how to return to app

Is it possible to return to my app once a phone link ( tel: ) has been clicked, and opened using 单击并打开电话链接( tel:是否可以返回我的应用程序

[[UIApplication sharedApplication] openURL:xyz]

For example, when the user ends the call? 例如,用户何时结束通话?

Thanks 谢谢

不,很遗憾,无法实现这一目标,因为单击链接始终会首先终止您的应用程序,然后启动新应用程序。

No. Although if you store your state using NSUserDefaults (or other means) you can return to the same point where you left; 否。尽管如果您使用NSUserDefaults (或其他方式)存储状态,则可以返回到您离开的同一点。 the user will have to relaunch your app to do this. 用户将必须重新启动您的应用程序才能执行此操作。 This approach is recommended in the Human Interface Guidelines. 人机界面指南中建议使用此方法。

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

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