对于< FirstViewController:0x2a2c00>的开始/结束外观转换的不平衡调用。 [英] Unbalanced calls to begin/end appearance transitions for <FirstViewController: 0x2a2c00>

查看:79
本文介绍了对于< FirstViewController:0x2a2c00>的开始/结束外观转换的不平衡调用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在模拟我的应用时遇到此问题,它不是错误或警告,但它出现在我的控制台中,有没有人曾经历过这个?

I have this problem when I simulate my app, its not an error or a warning but it appears in my console, has anyone ever experienced this before?

推荐答案

在我的情况下,当您非常快速地单击tableview中的两个选项卡时会发生此错误。

In my case, this error occurs when you click two tabs in a tableview very fast.

结果导致错误的titlename,后退按钮消失。有人提到当你推视图时,设置动画:否。错误将消失但仍会导致一些奇怪的行为。它会推送两个视图,然后你需要返回两次才能返回tableview屏幕。

The result causes wrong titlename, back button disappear. Someone mentioned that when you push a view, set animated:NO. The error will disappear but still causes some strange behavior. It pushes two views, then you need to back twice to get back the tableview screen.

方法我试图解决这个问题:

Method I tried in order to resolve this problem:

viewWillAppear中添加 BOOL cellSelected;

cellSelected = YES;

在didselectcell委托 if(cellSelected) {cellSelected = NO;做行动; }

in didselectcell delegate if (cellSelected){cellSelected = NO; do action ; }

这有助于防止非常快速地点击两个不同的单元格。

This helps prevent clicking two different cells very fast.

这篇关于对于< FirstViewController:0x2a2c00>的开始/结束外观转换的不平衡调用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆