为什么transitionFromView...会导致toView:延迟?

发布于 2025-01-05 05:54:00 字数 497 浏览 0 评论 0原文

我正在使用 transitionFromView:... UIView 选择器在我的应用程序委托中的两个 UIViewController 之间进行交换,它工作正常,但 UINavigationController 中的 UINavigationBar 似乎有不同的框架...

issue intransition

我的应用程序委托很简单,我使用控制器来下载信息,它有一个委托通知其操作已结束,在那一刻我使用 UIView transitionFromView:... 选择器来动画控制器交换,并发生我在图像中向您展示的内容。 UINavigationController 中的 UIView 也会出现此问题。

我做了一些简单的例子模拟相同并且工作正常,我相信这个问题是由 UINavigationController rootController 中的 viewDidLoad 选择器引起的,我是对的吗?或者还有什么可能发生?

I'm using transitionFromView:... UIView selector for interchange between two UIViewControllers in my application delegate and it works fine but UINavigationBar from my UINavigationController seems like has a different frame...

issue in transition

My Application Delegate is simple, I use a controller for download info, it has a delegate which informs that its action is over, in that momment I use UIView transitionFromView:... selector to animate the controllers interchange, and happens what I show you in the image. This problem also happen with the UIView from the UINavigationController too.

I have made some simple examples simulating the same and works fine, I believe that this problem is caused for the viewDidLoad selector in the UINavigationController rootController, am I correct? Or what else could being happen?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文