Concurrent Queue with GCD? (iOS 4.2.1)

馋奶兔 提交于 2019-12-01 15:50:57

It appears DISPATCH_QUEUE_PRIORITY_BACKGROUND is only available for iOS 5.0 and later.

DISPATCH_QUEUE_PRIORITY_BACKGROUND Items dispatched to the queue run at background priority; the queue is scheduled for execution after all high priority queues have been scheduled and the system runs items on a thread whose priority is set for background status. Such a thread has the lowest priority and any disk I/O is throttled to minimize the impact on the system. Available in iOS 5.0 and later.

Found here

In the case the user is running iOS 4 you could go with DISPATCH_QUEUE_PRIORITY_LOW and then use DISPATCH_QUEUE_PRIORITY_BACKGROUND for iOS 5 and later.

Edit

The documentation is a little misleading if you don't read it closely in this case.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!