quot;Unbalanced calls to begin/end appearance transitionsquot; warning when push a view in a modal way in XCode 4 with Storyboard(“开始/结束外观转换的不平衡调用在带有 Storyboard 的 XCode 4 中以模态方式推送视图时发出警告)
问题描述
在网络上进行了一些研究但没有成功,我来这里问你关于我的警告的问题.
After some research on the web without success, I come here to ask you the question about my warning.
实际上,我有一个带有导航控制器的视图 V1,我想在 V1 完成加载后推送一个模态视图 V2.所以我使用 performSegueWithIdentifier 方法(我正在使用情节提要).这是我的代码:
Actually, I have a view V1 with a navigation controller and I want to push a modal view V2 when V1 has finished loading.
So I use the performSegueWithIdentifier method (I'm using storyboard).
Here is my code:
[self performSegueWithIdentifier:@"showConnexionViewSegue" sender:self];
当我编译时,我收到了这个警告:
And when I compile, I got this warning:
Unbalanced calls to begin/end appearance transitions for <UINavigationController: 0x6849b30>
谁能帮帮我?
推荐答案
听起来你可能在 -viewWillAppear: 中执行 segue 从而生成两个 -viewWillAppear:没有 2 条对应 -viewDidAppear 消息的消息.
It sounds like you may be performing the segue in -viewWillAppear: thus generating two -viewWillAppear: messages without 2 corresponding -viewDidAppear messages.
尝试在-viewDidAppear中执行segue.
Try performing the segue in -viewDidAppear.
这篇关于“开始/结束外观转换的不平衡调用"在带有 Storyboard 的 XCode 4 中以模态方式推送视图时发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“开始/结束外观转换的不平衡调用"在带有 Storyboard 的 XCode 4 中以模态方式推送视图时发出警告
基础教程推荐
- 在 iOS 上默认是 char 签名还是 unsigned? 2022-01-01
- 固定小数的Android Money Input 2022-01-01
- LocationClient 与 LocationManager 2022-01-01
- 如何使用 YouTube API V3? 2022-01-01
- Android文本颜色不会改变颜色 2022-01-01
- Android ViewPager:在 ViewPager 中更新屏幕外但缓存的片段 2022-01-01
- 如何使 UINavigationBar 背景透明? 2022-01-01
- :hover 状态不会在 iOS 上结束 2022-01-01
- 使用 Ryzen 处理器同时运行 WSL2 和 Android Studio 2022-01-01
- “让"到底是怎么回事?关键字在 Swift 中的作用? 2022-01-01
