Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dispatch_release() in ios6

In iOS 6 dispatch_queue is managed by ARC . The complier complains if I use dispatch_release.

If I develop in ios6 sdk , but I still want to deploy the app in ios5, is that ok if I do not write dispatch_release?

like image 968
Exia Avatar asked Jan 28 '26 14:01

Exia


1 Answers

If you set your deployment target to iOS 5 (or iOS 5.1, or any version earlier than iOS 6.0), the compiler will let you use dispatch_release without complaining. It only complains if your deployment target is set to iOS 6.0 or later. The SDK version doesn't matter. Only the deployment target version matters.

For full details, see this answer.

like image 143
rob mayoff Avatar answered Jan 30 '26 16:01

rob mayoff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!