当 iOS 应用程序在非常短的时间内返回地面时,核心数据能否杀死应用程序
Can the core data kill the app when the iOS app is back ground in very less time
我无法让应用程序在后台运行超过 4minutes.The 应用程序 暂停 4 分钟后。这是因为核心数据吗?如果是有什么解决办法吗?
您的应用被暂停是正常的。如果你需要完成任务,你可以延长一段时间,但你不能永远在后台执行任务。来自 Apple 的网站:
Apps moving to the background are expected to put themselves into a
quiescent state as quickly as possible so that they can be suspended
by the system. If your app is in the middle of a task and needs a
little extra time to complete that task, it can call the
beginBackgroundTaskWithName:expirationHandler: or
beginBackgroundTaskWithExpirationHandler: method of the UIApplication
object to request some additional execution time. Calling either of
these methods delays the suspension of your app temporarily, giving it
a little extra time to finish its work. Upon completion of that work,
your app must call the endBackgroundTask: method to let the system
know that it is finished and can be suspended.
查看全文here
你到底想在后台做什么?
我无法让应用程序在后台运行超过 4minutes.The 应用程序 暂停 4 分钟后。这是因为核心数据吗?如果是有什么解决办法吗?
您的应用被暂停是正常的。如果你需要完成任务,你可以延长一段时间,但你不能永远在后台执行任务。来自 Apple 的网站:
Apps moving to the background are expected to put themselves into a quiescent state as quickly as possible so that they can be suspended by the system. If your app is in the middle of a task and needs a little extra time to complete that task, it can call the beginBackgroundTaskWithName:expirationHandler: or beginBackgroundTaskWithExpirationHandler: method of the UIApplication object to request some additional execution time. Calling either of these methods delays the suspension of your app temporarily, giving it a little extra time to finish its work. Upon completion of that work, your app must call the endBackgroundTask: method to let the system know that it is finished and can be suspended.
查看全文here
你到底想在后台做什么?