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?
Use this instead of openGLView:
[[CCDirector sharedDirector] view];
This worked for me!
[[[CCDirector sharedDirector] view] addSubview:myUiView];
Considering that openGLView is deprecated!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With