Top "Automatic-ref-counting" questions

Automatic Reference Counting (ARC) is a compiler feature that provides automatic memory management of Objective-C and Swift objects.

Custom dealloc and ARC (Objective-C)

In my little iPad app I have a "switch language" function that uses an observer. Every view controller registers itself …

objective-c ios xcode dealloc automatic-ref-counting
Why is @autoreleasepool still needed with ARC?

For the most part with ARC (Automatic Reference Counting), we don't need to think about memory management at all with …

objective-c memory-management xcode4.2 automatic-ref-counting
How can I fix this error: "ARC forbids explicit message send of 'release' in Xcode"

I'm trying to make a simple animation image in iPhone from an image array: - (void)viewDidLoad { NSArray *imageArray; imageArray = [[…

iphone objective-c animation automatic-ref-counting
How does the new automatic reference counting mechanism work?

Can someone briefly explain to me how ARC works? I know it's different from Garbage Collection, but I was just …

objective-c cocoa-touch garbage-collection automatic-ref-counting
iOS 5 Best Practice (Release/retain?)

As a beginning iPhone programmer, what is the best practice for writing apps to be used either with iOS 5 or …

iphone ios ios5 memory-management automatic-ref-counting
Some questions about Automatic Reference Counting in iOS5 SDK

I'm currently developing an app for iPad. The development started for iOS 4.2 and is now continuing (and I think will …

objective-c ios5 automatic-ref-counting xcode4.2
Disable Automatic Reference Counting for Some Files

I have downloaded the iOS 5 SDK and found that ARC is a great feature of the new Apple compiler. For …

objective-c ios5 automatic-ref-counting
ARC forbids Objective-C objects in structs or unions despite marking the file -fno-objc-arc

ARC forbids Objective-C objects in structs or unions despite marking the file -fno-objc-arc? Why is this so? I had the …

iphone objective-c struct ios5 automatic-ref-counting
Explanation of strong and weak storage in iOS5

I am new to iOS5 development and using objective-c. I have trouble understanding the difference between strong and weak storage. …

memory-management ios5 automatic-ref-counting
How do I replace weak references when using ARC and targeting iOS 4.0?

I've begun developing my first iOS app with Xcode 4.2, and was targeting iOS 5.0 with a "utility application" template (the one …

iphone ios automatic-ref-counting