• <bdo id='o6jP1'></bdo><ul id='o6jP1'></ul>

      <legend id='o6jP1'><style id='o6jP1'><dir id='o6jP1'><q id='o6jP1'></q></dir></style></legend>
    1. <small id='o6jP1'></small><noframes id='o6jP1'>

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

        <tfoot id='o6jP1'></tfoot>

        对 &lt;UINavigationController: 0xa98e050&gt; 的开始/结束外观

        时间:2023-06-12
          <tbody id='JyD4r'></tbody>
          <bdo id='JyD4r'></bdo><ul id='JyD4r'></ul>

              • <small id='JyD4r'></small><noframes id='JyD4r'>

                <legend id='JyD4r'><style id='JyD4r'><dir id='JyD4r'><q id='JyD4r'></q></dir></style></legend>

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

                  本文介绍了对 &lt;UINavigationController: 0xa98e050&gt; 的开始/结束外观转换的不平衡调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在编译我得到的代码时

                  <UINavigationController: 0xa98e050> 的开始/结束外观转换的不平衡调用"

                  "Unbalanced calls to begin/end appearance transitions for <UINavigationController: 0xa98e050>"

                  警告.

                  这是我的代码

                  KVPasscodeViewController *passcodeController = [[KVPasscodeViewController alloc] init];
                  passcodeController.delegate = self;
                  
                  UINavigationController *passcodeNavigationController = [[UINavigationController alloc] initWithRootViewController:passcodeController];
                  [(UIViewController *)self.delegate presentModalViewController:passcodeNavigationController animated:YES];
                  

                  推荐答案

                  我知道这是一个老问题,但是为了那些再次遇到这个问题的人,这里是我发现的.

                  I know this is an old question, but for the sake of those who run across this again, here is what I've found.

                  首先,问题没有说明新 viewController 的调用位置.
                  我怀疑这是从 -(void)viewDidLoad

                  Firstly, The question does not state where the new viewController was being called.
                  I suspect this was called from -(void)viewDidLoad

                  将适当的代码移动到 -(void)viewDidAppear: 并且问题应该会消失.

                  Move the appropriate code to -(void)viewDidAppear: and the problem should go away.

                  这是因为在 -viewDidLoad 处,视图已加载,但尚未呈现,动画和视图尚未完成.

                  This is because at -viewDidLoad, the view has loaded, but has not yet been presented and the animations and views have not completed.

                  如果您的意图是推动窗口,请在窗口呈现并绘制后执行.

                  If your intent is to push a window, do it after the window has been presented and has painted.

                  如果您发现自己使用计时器来控制系统行为,请问问自己做错了什么,或者如何才能更正确地做到这一点.

                  If you ever find yourself using timers to control system behavior, ask yourself what you are doing wrong, or how you could do it more properly.

                  这篇关于对 &lt;UINavigationController: 0xa98e050&gt; 的开始/结束外观转换的不平衡调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:UINavigationController 中仅支持一个视图的横向 下一篇:swift:在导航栏中设置后退按钮图像

                  相关文章

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

                        <bdo id='skIpm'></bdo><ul id='skIpm'></ul>
                      <tfoot id='skIpm'></tfoot>

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