ViewController transition bottleneck in UITabBarController

邮差的信 提交于 2019-12-13 04:38:27

问题


When I tap on a specific UITabBarItem to switch ViewControllers, the transition takes about 4 - 5s.

There is no heavy processing being done, so this leads me to believe that the code is simply inefficient.

After having taken a look inside Instruments as suggested in the comments, I have pinpointed the following process to be taking ~> 2500 ms

Running Time    Self (ms)       Symbol Name
2485.0ms   44.3%    0.0     
TDescriptorSource::CopyDescriptorsForRequestFromArray(__CFArray const*, __CFDictionary const*, CFComparisonResult (*)(void const*, void const*, void*), void*, unsigned long, bool) const

and

Running Time    Self (ms)       Symbol Name
3070.0ms   54.7%    0.0      -[UIStackView initWithCoder:]

What does this mean?

来源:https://stackoverflow.com/questions/33963768/viewcontroller-transition-bottleneck-in-uitabbarcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!