gpt4 book ai didi

ios - 导航 Controller popViewControllerAnimated : yes is not working as expected

转载 作者:技术小花猫 更新时间:2023-10-29 10:23:29 26 4
gpt4 key购买 nike

我正在使用以下代码行:

[self.navigationController popViewControllerAnimated:YES];

但它在 ios 7 中的行为与在 ios 6 中的行为不同。有时,当我们连续按下后退按钮 2-3 次时,它不会弹出 Controller 。
导致导航栏出现突然行为并取消分配 Controller 但在 ui 上显示相同。
因此,当我们在该 Controller 上按下任何东西时,都会导致崩溃,因为 Controller 已经被释放。

最佳答案

检查您是否在 UI 线程上运行代码

关于ios - 导航 Controller popViewControllerAnimated : yes is not working as expected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22532661/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com