gpt4 book ai didi

animationControllerForPresentedController 和 animateTransition 之间的 iOS 未知延迟

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:15:59 24 4
gpt4 key购买 nike

当从 tableView 触发动画时,我遇到了一个使用 UIViewControllerContextTransitioning 的自定义转换的恼人问题

我遵循了许多教程,仅举几例: - http://www.brightec.co.uk/blog/ios-7-custom-view-controller-transitions-and-rotation-making-it-all-work - http://objectivetoast.com/2014/03/17/custom-transitions-on-ios/

这正是我遇到的问题(但没有解决方案:/):Custom transition animation unknown delay between animationControllerForPresentedController and animateTransition有时有效,有时只是为了减慢速度。

我不知道 animationControllerForPresentedController 和 animateTransition 之间在幕后发生了什么。如果您有关于如何调试的想法,我很想听听。

最佳答案

即使没有看到您的代码,我也很确定您遇到了主线程问题。 (请参阅 http://www.raywenderlich.com/31166/25-ios-app-performance-tips-tricks#mainthread - 理解这一点,既不阻塞主线程又始终在主线程上执行 UI。

关于animationControllerForPresentedController 和 animateTransition 之间的 iOS 未知延迟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29129282/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com