engine-native icon indicating copy to clipboard operation
engine-native copied to clipboard

3.4.2 IOS Can not use UINavigationController

Open speakissilver opened this issue 3 years ago • 1 comments

The app crashed when I try to run:

"UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:_viewController]; [self.window setRootViewController:nav];"

and the error message shows:

"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CALayer pixelFormat]: unrecognized selector sent to instance 0x280263d20'"

I think there might be something wrong with the following part:

"uintptr_t windowHandle = reinterpret_cast<uintptr_t>(UIApplication.sharedApplication.delegate.window.rootViewController.view);"

image

Can you advise how to solve this problem?

speakissilver avatar Jul 11 '22 08:07 speakissilver

@speakissilver engine-native is merge into https://github.com/cocos/cocos-engine . Could you please create issues there.

minggo avatar Jul 12 '22 06:07 minggo