I am using Xcode 4.5.2 to create a universal iOS application.
I would like to use my storyboard for my application. I usually create a new project by choosing New> Project> Single view project> check Use the storyboard.
Sometimes in my application I need to use Cocos2D for complex animation (there is no need to interact with it, just for presentation).
My animation was created using CocosBuilder, which works with Cocos2D 2.0 and the CCBReader library.
I tried adding Cocos2D to my existing project:
- Adding a Cocos2D folder (including support, platforms, kazmath folders).
- Try something like edit -fno-obj-arc for these * .m files in the build phases / compilation sources.
But when I create the project, ARC errors still exist.
#Question:
- How can I implement Cocos2D in an existing Xcode 4.3 / 4.5 project?
- If I create a Cocos2D template project, can I activate ARC for the rest of my project, those classes that are not Cocos2D?
I successfully created a project with Cocos2D inside a UIView from a Cocos2D template as a Ray post , but now I want things (maybe) to be a little more complicated.
source share