I have integrated cocos2d with storyboard. In the cocos2d view I have a CCMenu with some buttons. I want that when I click a button, open a scene from the storyboard. Is this possible? I want to use buttons from cocos2d.
Thanks.
I have integrated cocos2d with storyboard. In the cocos2d view I have a CCMenu with some buttons. I want that when I click a button, open a scene from the storyboard. Is this possible? I want to use buttons from cocos2d.
Thanks.
When viewing the storyboard, assign the particular scene you want to launch a storyboard ID from the identity inspector in Interface Builder. Then, make the method that is called by the Cocos2d button call this method:
That code will tell the navigation controller to create and push the storyboard scene with that matching ID.