1. <small id='01FvO'></small><noframes id='01FvO'>

    <legend id='01FvO'><style id='01FvO'><dir id='01FvO'><q id='01FvO'></q></dir></style></legend>
        <bdo id='01FvO'></bdo><ul id='01FvO'></ul>
      <tfoot id='01FvO'></tfoot>
      <i id='01FvO'><tr id='01FvO'><dt id='01FvO'><q id='01FvO'><span id='01FvO'><b id='01FvO'><form id='01FvO'><ins id='01FvO'></ins><ul id='01FvO'></ul><sub id='01FvO'></sub></form><legend id='01FvO'></legend><bdo id='01FvO'><pre id='01FvO'><center id='01FvO'></center></pre></bdo></b><th id='01FvO'></th></span></q></dt></tr></i><div id='01FvO'><tfoot id='01FvO'></tfoot><dl id='01FvO'><fieldset id='01FvO'></fieldset></dl></div>

      viewDidDisappear 没有在 UINavigationController 上被调用

      时间:2023-06-10
        <i id='qHESK'><tr id='qHESK'><dt id='qHESK'><q id='qHESK'><span id='qHESK'><b id='qHESK'><form id='qHESK'><ins id='qHESK'></ins><ul id='qHESK'></ul><sub id='qHESK'></sub></form><legend id='qHESK'></legend><bdo id='qHESK'><pre id='qHESK'><center id='qHESK'></center></pre></bdo></b><th id='qHESK'></th></span></q></dt></tr></i><div id='qHESK'><tfoot id='qHESK'></tfoot><dl id='qHESK'><fieldset id='qHESK'></fieldset></dl></div>
            <bdo id='qHESK'></bdo><ul id='qHESK'></ul>
            • <legend id='qHESK'><style id='qHESK'><dir id='qHESK'><q id='qHESK'></q></dir></style></legend>
                <tfoot id='qHESK'></tfoot>
                  <tbody id='qHESK'></tbody>

                <small id='qHESK'></small><noframes id='qHESK'>

                本文介绍了viewDidDisappear 没有在 UINavigationController 上被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我的导航控制器有问题.如果我将视图控制器添加到堆栈中:

                I'm having a problem with my navigation controller. If I add a view controller to the stack:

                - (void) tui_ToggleListStudy:(id)sender
                {
                    listVC = [[ListViewController alloc] init];
                    [self.navigationController pushViewController:listVC animated:NO];
                    [listVC release];
                }
                

                我有 viewWillDisappear:viewDidDisappear 下面的视图控制器的 NSLog 消息 - 但只有 viewWillDisappear: 被调用.

                I have NSLog messages for the view controller beneath, for both viewWillDisappear: and viewDidDisappear - but only viewWillDisappear: is getting called.

                不仅如此,视图控制器也没有收到任何其他委托消息:没有 viewDidUnloaddealloc...

                Not only that, but the view controller doesn't receive any other delegate messages either: No viewDidUnload, or dealloc...

                对此我有什么办法吗?

                我被难住了!有什么想法吗?

                I'm stumped! Any thoughts?

                谢谢!

                推荐答案

                如果您在代码中输入了与问题中相同的错字,我知道答案:方法签名是 viewDidDisappear:(使用 animated 参数),而不是 viewDidDisappear.

                I know the answer if you made the same typo in your code that you made in your question: the method signature is viewDidDisappear: (with the animated argument), not viewDidDisappear.

                不仅如此,视图控制器也没有收到任何其他委托消息:No viewDidUnload 或 dealloc...

                Not only that, but the view controller doesn't receive any other delegate messages either: No viewDidUnload, or dealloc...

                当您将另一个控制器压入堆栈时,视图控制器不会被释放.除非内存不足,否则不会调用 viewDidUnload.

                A view controller will not be deallocated when you push another controller onto the stack. And viewDidUnload won't be called unless you run out of memory.

                这篇关于viewDidDisappear 没有在 UINavigationController 上被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:iphone facebook 应用程序如何修复导航栏 下一篇:将 UITabBarController 与 UINavigationController 一起使用 - Swift 3

                相关文章

                <tfoot id='ggeib'></tfoot>

                <i id='ggeib'><tr id='ggeib'><dt id='ggeib'><q id='ggeib'><span id='ggeib'><b id='ggeib'><form id='ggeib'><ins id='ggeib'></ins><ul id='ggeib'></ul><sub id='ggeib'></sub></form><legend id='ggeib'></legend><bdo id='ggeib'><pre id='ggeib'><center id='ggeib'></center></pre></bdo></b><th id='ggeib'></th></span></q></dt></tr></i><div id='ggeib'><tfoot id='ggeib'></tfoot><dl id='ggeib'><fieldset id='ggeib'></fieldset></dl></div>
                1. <small id='ggeib'></small><noframes id='ggeib'>

                    <legend id='ggeib'><style id='ggeib'><dir id='ggeib'><q id='ggeib'></q></dir></style></legend>
                    • <bdo id='ggeib'></bdo><ul id='ggeib'></ul>