App=cocos2d: : Application: : getInstance ();
S_sharedApplication. InitMxProtocol ();
App - & gt; InitGLContextAttrs ();
Cocos2d: : GLViewImpl: : convertAttrs ();
Self. ViewController=[[RootViewController alloc] initWithNibName: nil bundle: nil];
//Init the CCEAGLView
Nsstrings * pixelStr=(__bridge nsstrings *) cocos2d: : GLViewImpl: : _pixelFormat;
EaglView=[CCEAGLView viewWithFrame: [UIScreen mainScreen]. Bounds
PixelFormat: pixelStr
DepthFormat: cocos2d: : GLViewImpl: : _depthFormat
PreserveBackbuffer: NO
Sharegroup: nil
MultiSampling: NO
NumberOfSamples: 4];
//Enable or disable multiple touches
[eaglView setMultipleTouchEnabled: YES];
The self. The viewController. WantsFullScreenLayout=YES;
The self. The viewController. View=eaglView;
[the self viewController InitMeas];
The self: : InitMxImagePicker (__bridge (void *). The viewController);
IMxImagePickerImp: : Init (self. ViewController);
//the cocos: GLView proxy mode
Cocos2d: : GLView * GLView=cocos2d: : GLViewImpl: : createWithEAGLView (self (__bridge void *). The viewController. View);
Cocos2d: : Director: : getInstance () - & gt; SetOpenGLView (glview);
App - & gt; The run ();
[the self presentViewController: self viewController animated: YES completion: nil];
This is done through a button to jump to cocos2d to create a view; Return is the first time use is dismiss, jump is normal, behind the present the past again, interface is black screen, can click to return,
How can you jump over the past the normal!!! Urgent urgent!!!!!!
CodePudding user response:
DPI: 326.00, screenSize: 6, 640113 Inches: 4.00350 libpng warning: iCCP: known incorrect sRGB profileLibpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Mx TextureCache: : addImage no find file:
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Mx TextureCache: : addImage no find file:
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Mx TextureCache: : addImage no find file:
Mx TextureCache: : addImage no find file:
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
Libpng warning: iCCP: known incorrect sRGB profile
The 2016-10-22 15:40:55. 491712 Drawing (4628-1426365) Central Manager Update State to CBCentralManagerStatePoweredOn
The 2016-10-22 15:40:55. 491844 Drawing [4628-1426365] DidStateChange
The 2016-10-22 15:41:13. 546197 Drawing (4628-1426365)====================
The second time in printed
DPI: 326.00, screenSize: 6, 640113 Inches: OpenGL 4.00350 error 0 x0501 in/MxDraw6.3 MxDrawCode/SRC/3 rdparty/cocos2dx/cocos2d/cocos/renderer/CCTexture2D CPP initWithMipmaps 648
OpenGL error 0 x0501 in/MxDraw6.3 MxDrawCode/SRC/3 rdparty/cocos2dx/cocos2d/cocos/renderer/CCTexture2D CPP initWithMipmaps 648
OpenGL error 0 x0501 in - [CCES2Renderer resizeFromLayer:] 146