ios - 当我的应用程序处于后台时,我可以保持视频上传过程吗?

标签 ios xcode

我的 iOS 应用程序在我的视频上传过程中崩溃并且应用程序进入后台,即使它没有调用 didEnterbackground 方法。 有人知道是什么原因造成的吗?即使我的应用程序在后台,我该如何管理上传。

最佳答案

你试过后台 session 吗?像这样:

let configuration = NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier("com.you.uoload")
let session = NSURLSession(configuration: configuration, delegate: nil, delegateQueue: NSOperationQueue.mainQueue())

关于ios - 当我的应用程序处于后台时,我可以保持视频上传过程吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37181361/

相关文章:

ios - 在iPhone和iPad上,我们可以不使用drawRect来绘制任何东西吗?

ios - 我需要从哪里下载应用商店连接的 dSYM?

ios - 应用程序在运行存档导出的 .ipa 时崩溃,但可以在模拟器上运行并将应用程序侧面加载到设备上

iphone - 使用iPhone将音频文件保存在文档目录中

ios - xCode 是否有像浏览器控制台一样的 iOS 开发调试控制台?

C++ Mac 库

ios - 使用 glDrawArrays,iOS 损坏 OpenGL 纹理

ios - WKWebView的标题等于document.title?

ios - GoogleTagManager 警告 : No default container found. Container needs to be added to a container folder and added to the target

ios - 动态应用内设置