“开始/结束外观转换的不平衡调用"在带有 Storyboard 的 XCode 4 中以模态方式推送视图时发出

2023-05-17移动开发问题
0

本文介绍了“开始/结束外观转换的不平衡调用"在带有 Storyboard 的 XCode 4 中以模态方式推送视图时发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

限时送ChatGPT账号..

在网络上进行了一些研究但没有成功,我来这里问你关于我的警告的问题.

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 中以模态方式推送视图时发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

Cocos2d - 如何检查不同层中对象之间的交集
Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)...
2024-08-12 移动开发问题
8

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

突出显示朗读文本(在 iPhone 的故事书类型应用程序中)
Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))...
2024-08-12 移动开发问题
9

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

正确的 cocos2d 场景重启?
Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)...
2024-08-12 移动开发问题
7