我的应用程序已越狱,我不必将其提交到应用程序商店。问题是 ios 在 2 或 3 小时后杀死了我的应用程序。我使用了 xcode 的静态分析器并删除了所有内存泄漏。我甚至安装了内存监视器。当 ios 杀死我的应用程序时,至少有 300 mb 的可用内存。有什么方法可以防止 ios 杀死我的应用程序?
最佳答案
尝试使用 AVAudioPlayer
循环播放无声音频文件。 iOS 不会关闭正在播放的应用。
还有:How to handle background audio playing while iOS device is locked or on another application?
关于ios - 有什么办法可以防止 ios 杀死我的应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15652960/