Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.4.2 IOS Can not use UINavigationController #4287

Open
speakissilver opened this issue Jul 11, 2022 · 1 comment
Open

3.4.2 IOS Can not use UINavigationController #4287

speakissilver opened this issue Jul 11, 2022 · 1 comment

Comments

@speakissilver
Copy link

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?

@minggo
Copy link
Contributor

minggo commented Jul 12, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants