简体   繁体   English

从应用程序内拨打电话

[英]Making a phone call from within an app

Is there any way to make a call from within an app without quitting the app? 是否可以在不退出应用程序的情况下通过应用程序拨打电话? If yes please help. 如果是,请帮助。 If not, what should I do to save the state of the app before quitting the app and resuming from that state on restart? 如果不是,在退出应用程序并在重新启动时从该状态恢复之前,我该怎么做才能保存应用程序的状态? Thanks for any reply.. 感谢您的回复。

When your app initiates a call, the OS quits your app, giving you a little time in the background to save the app's state, and launches the phone app. 当您的应用发起呼叫时,操作系统会退出您的应用,从而为您留出一些时间在后台保存应用的状态,然后启动电话应用。

It's up to you to save all your settings and the state of the app such as what view you are in to a plist. 保存所有设置和应用程序状态(例如您进入plist的视图)完全取决于您。 Upon launch, go through and initialize your settings and state with that plist. 启动后,通过该plist初始化并初始化您的设置和状态。

There is no easy way to do this. 没有简单的方法可以做到这一点。 Only you know what information needs to be saved and reinstated in order to restore your app to the state that it was in before being quit. 只有您知道需要保存和恢复哪些信息,才能将您的应用恢复到退出前的状态。

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

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