pushViewController Taking too much to show the view

后端 未结 2 1810
我寻月下人不归
我寻月下人不归 2021-01-20 06:03

I have a really light ViewController, it does nothing in viewDidLoad. I\'m pushing this view on top of a navigationController. The method who does this action is called from

2条回答
  •  没有蜡笔的小新
    2021-01-20 06:46

    This might not be the only problem, but according to the docs, the completion handler passed to ABAddressBookRequestAccessWithCompletion is called on an arbitrary queue. -showView should only be called on the main queue since it is dealing with UIViewController objects.

    The other thing to ask is what else is happening on the main queue? Are there other long-running tasks that could be blocking UI updates?

提交回复
热议问题