Add viewcontroller in cocos2d scene -


Can anyone tell me the best way to add a view controller with nib file in Cocos 2D view?

Thanks

UIView can be added to another UIView, but not cocos2d View (CCScene). You can use OpenGLVU from the CCCCDir class for your purpose.

  [[CCDCD shared directory]. OpenViewView addSubView: yourView]  

Comments