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

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

I am presenting a view controller:

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


        
5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 02:56

    I had similar problem where the callback was on a different thread than the main thread. Using

                DispatchQueue.main.async {
                     Your_UI_update_function()
                }
    

    solves the slow UI update problem for me.

提交回复
热议问题