I’ve just begun developing with Cocos2d for iPhone. And I’ve realized that there was no “Use Automatic Reference Counting” check box when creating a new project with a Cocos2d template. My Xcode is 4.3.1, iOS 5. Can I still omit retains and releases or do I have to go old style?
I’ve just begun developing with Cocos2d for iPhone. And I’ve realized that there was
Share
You have to enable ARC under Build Settings before you can use it. For cocos2d you need at least v1.0.1 (with possibly some manual fixes) or v1.1 or v2.0. Then follow my tutorial about enabling ARC in a cocos2d project.
You could also just use Kobold2D for cocos2d development. ARC is already enabled in all template projects.