简体   繁体   English

导航控制器的“后退”按钮崩溃

[英]Navigation Controller 'Back' button crash

I started by pushing 2 UIViewControllers in my app delegate homeView and loginView (back button is hidden). 我首先在我的应用程序委托homeView和loginView中推送了2个UIViewControllers(隐藏了后退按钮)。

In my loginView I have a condition to check whether to pop to homeView or remain at loginView. 在我的loginView中,我有一个条件可以检查是弹出到homeView还是保留在loginView上。

In my homeView I pushed another UIViewController called myMatches and this time I didn't hide the back button. 在我的homeView中,我推送了另一个名为myMatches的UIViewController,这一次我没有隐藏“后退”按钮。

The crash happens when I press this back button (it will display my homeView for a while and then crashes). 当我按下此后退按钮时会发生崩溃(它会显示我的homeView一会儿,然后崩溃)。

Anyone had encountered this problem before? 有人遇到过这个问题吗? How did you solve it? 您是如何解决的?

请检入您的myMatches dealloc,那里放一些东西(变量,对象)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM