uiviewcocos2d-iphonedeprecatedcclayer

Cocos2d 2.0 Adding UIView to CClayer openglview deprecated


I'm having some troubles adding an UIView to cocos2d v2.0 since the openGlView is deprecated I can't add the view to it. I was looking around to find another way to do this but I couldn't find anything.

Can anyone tell me the new way to add an UIView in front of all cc layers?? or how can I accomplish this?


Solution

  • Use this instead of openGLView:

    [[CCDirector sharedDirector] view];