Using Cocos2d inside a CCGLView that is  a Subview of the UIViewController's View