Slow performance for presentViewController - depends on complexity of presentING controller?

前端 未结 5 1594
有刺的猬
有刺的猬 2021-02-04 02:30

I am presenting a view controller:

SCAAboutController2 *controller = [[SCAAboutController2 alloc] initWithNibName:nil bundle:nil];
UINavigationController *navCon         


        
5条回答
  •  猫巷女王i
    2021-02-04 02:52

    Adding the line:

    CFRunLoopWakeUp(CFRunLoopGetCurrent());

    After:

    [self presentViewController:navController animated:YES completion:nil];

    Fixed the issue for me.

    Answer taken from this thread. Found thanks to the comment by Eugene H.

提交回复
热议问题