theiOSguy
theiOSguy

Reputation: 608

Significance of @autoreleasepool in iOS 6

Older version of XCode, if you remove autorelease pool code in main.m the application used to crash. But now even if I dont have any statement such as @autoreleasepool in main.m then also the app works fine. What has changed? I tried with ARC and without ARC both

Upvotes: 0

Views: 291

Answers (1)

Catfish_Man
Catfish_Man

Reputation: 41821

The Objective-C runtime installs an "autorelease pool of last resort" for you. It's best not to rely on it.

Upvotes: 1

Related Questions