<small id='602SD'></small><noframes id='602SD'>

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

    2. <tfoot id='602SD'></tfoot>

    3. UINavigationController 和后退按钮操作

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

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

            1. <tfoot id='chFBB'></tfoot><legend id='chFBB'><style id='chFBB'><dir id='chFBB'><q id='chFBB'></q></dir></style></legend>
                <bdo id='chFBB'></bdo><ul id='chFBB'></ul>
                本文介绍了UINavigationController 和后退按钮操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有两个 controllers 第一个是 self,第二个是 maincontroller,我正在推 maincontrollerstack 中,所以后退按钮会自动出现.

                I have an two controllers 1st is self and 2nd is maincontroller, where I'm pushing maincontroller in stack, so the back button is automatically coming.

                这里我需要在用户按下后退按钮时发出警报.

                Here I need to make an alert when the user presses the back button.

                我该怎么做?

                推荐答案

                或者你可以使用 UINavigationController 的委托方法.方法 willShowViewController 在你的 VC 的后退按钮被按下时被调用.

                Or you can use the UINavigationController's delegate methods. The method willShowViewController is called when the back button of your VC is pressed.

                - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated;
                

                这篇关于UINavigationController 和后退按钮操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:透明 UINavigationBar 下一篇:设置 navigationController.hidesBarsOnSwipe = YES 不再显示我的导航栏

                相关文章

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

                <small id='1ewMP'></small><noframes id='1ewMP'>

                  <tfoot id='1ewMP'></tfoot>