Black screen on IOS

I created a navigationController, from an ordinary UIView switching to cocos2dx under GLView, the screen turns black
log: Opengl error 0x0502 … / CCSprite.cpp draw 591
Can you help me?