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

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

      1. <legend id='vQyjI'><style id='vQyjI'><dir id='vQyjI'><q id='vQyjI'></q></dir></style></legend>

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

        对 &lt;UITabBarController: 0x197870&gt; 的开始/结束外观转换的不平

        时间:2023-10-03

        1. <small id='mClEF'></small><noframes id='mClEF'>

          <tfoot id='mClEF'></tfoot>

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

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

                  问题描述

                  我读到另一位用户遇到类似 错误,但是这个错误是不同的情况.

                  I read SO about another user encountering similar error, but this error is in different case.

                  我最初添加视图控制器时收到此消息:

                  I received this message when I added a View Controller initially:

                  Unbalanced calls to begin/end appearance transitions for 
                  <UITabBarController: 0x197870>
                  

                  应用的结构如下:

                  我有一个 5 选项卡 TabBarController 链接到 5 个视图控制器.在初始显示选项卡中,我调用了一个新的 View Controller 来覆盖作为应用程序的介绍.

                  I got a 5-tab TabBarController linked to 5 View Controllers. In the initial showing tab, I call out a new View Controller to overlay as an introduction of the app.

                  我用这段代码来调用介绍视图控制器:

                  I use this code to call the introduction view controller:

                  IntroVC *vc = [[IntroVC alloc] init];
                  [self presentModalViewController:vc animated:YES];
                  [vc release]; 
                  

                  在这个 IntroVC 视图控制器出现后,上面的错误就会出现.

                  After this IntroVC view controller shows up, the above error shows.

                  附言我正在使用 xCode 4.2 &iOS 5.0 SDK,开发 iOS 4.3 应用.

                  p.s. I am using xCode 4.2 & iOS 5.0 SDK, developing iOS 4.3 app.

                  推荐答案

                  没有看到更多的周边代码我无法给出明确的答案,但我有两个理论.

                  Without seeing more of the surrounding code I can't give a definite answer, but I have two theories.

                  1. 您没有使用 UIViewController 的 指定初始化器initWithNibName:bundle:.尝试使用它,而不仅仅是 init.

                  另外,self 可能是标签栏控制器的视图控制器之一.始终从最顶层的视图控制器呈现视图控制器,这意味着在这种情况下要求标签栏控制器代表视图控制器呈现覆盖视图控制器.您仍然可以将任何回调委托保留给真正的视图控制器,但您必须让标签栏控制器存在并关闭.

                  Also, self may be one of the tab bar controller's view controllers. Always present view controllers from the topmost view controller, which means in this case ask the tab bar controller to present the overlay view controller on behalf of the view controller. You can still keep any callback delegates to the real view controller, but you must have the tab bar controller present and dismiss.

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

                  上一篇:在 iOS 4+ 中从 ABAddressBook 获取特定的 ABSource 下一篇:如何在表格视图中的两个单元格之间留出空间?

                  相关文章

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

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

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

                      <tfoot id='F5W2h'></tfoot>