I have developed an iPhone application which should support iOS4 and iOS5 based iPhone/iPad.
my application leaks memory at few places which is becoming hard to debug due to the size of code. I recently read about ARC (Automatic Reference Counting), my query is
do i need to modify my source code (retain/release /alloc/dealloc) to compile with ARC. also what all changes we need to perform using ARC?
is it advisable to shift to ARC?
will my app work on iOS4 phone if i use ARC
thanks.
This is probably not the best place to have posted this question, but I will answer because I don't mind the question being here.
http://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/_index.html
you will use the migration tool 'Edit > Refactor > Convert to Objective-C ARC' and hand fix anything the tool can't figure out.
Yes.
Yes but Zeroing weak references will not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With