Skip to content

3.4.2 IOS Can not use UINavigationController #4287

Description

@speakissilver

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions