• <bdo id='2FHMH'></bdo><ul id='2FHMH'></ul>

        <small id='2FHMH'></small><noframes id='2FHMH'>

        <tfoot id='2FHMH'></tfoot>
        <legend id='2FHMH'><style id='2FHMH'><dir id='2FHMH'><q id='2FHMH'></q></dir></style></legend>

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

        iPhone向左推视图控制器

        iPhone Pushing View Controller in a left direction(iPhone向左推视图控制器)

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

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

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

                <bdo id='ZUpGp'></bdo><ul id='ZUpGp'></ul>

                    <tbody id='ZUpGp'></tbody>
                  <tfoot id='ZUpGp'></tfoot>
                  本文介绍了iPhone向左推视图控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我有一个应用程序,它有一个中心视图,它的每一侧都有两个视图.我想要两个导航栏按钮,左和右,将新的导航控制器从左侧或右侧推送到视图上.

                  I have an app that has a centre view with two views off to each side of it. I want to have two navigation bar buttons, left and right which push a new navigation controller onto the view from the left or the right.

                  当您通过使用 NavigationController 的 pushviewController: 方法推送新视图来更改视图时,视图似乎从右侧滑入.如何将其更改为从左侧滑入?

                  When you change views by pushing a new view using the pushviewController: method of NavigationController, the view appears to slide in from the right. how do i change this to slide in from the left?

                  推荐答案

                  我不使用导航控制器,而是只移动视图.

                  Instead of using a navigation controller, I would just move the view.

                  CGRect inFrame = [currentView frame];
                  CGRect outFrame = firstFrame;
                  outFrame.origin.x -= inFrame.size.width;
                  
                  [UIView beginAnimations:nil context:nil];
                  [UIView setAnimationDuration:1.0];
                  
                  [newView setFrame:inFrame];
                  currentView setFrame:outFrame];
                  
                  [UIView commitAnimations];
                  

                  这篇关于iPhone向左推视图控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  UIImageView Gestures (Zoom, Rotate) Question(UIImageView 手势(缩放、旋转)问题)
                  Responsive website on iPhone - unwanted white space on rotate from landscape to portrait(iPhone上的响应式网站-从横向旋转到纵向时不需要的空白)
                  How to rotate an image 90 degrees on iOS?(如何在 iOS 上将图像旋转 90 度?)
                  How to capture current view screenshot and reuse in code? (iPhone SDK)(如何捕获当前视图屏幕截图并在代码中重用?(iPhone SDK))
                  iOS 6 shouldAutorotate: is NOT being called(iOS 6 shouldAutorotate: 没有被调用)
                  Android: Rotate image in imageview by an angle(Android:将imageview中的图像旋转一个角度)
                    • <bdo id='4bf1S'></bdo><ul id='4bf1S'></ul>

                        <tfoot id='4bf1S'></tfoot>
                          <tbody id='4bf1S'></tbody>

                        1. <small id='4bf1S'></small><noframes id='4bf1S'>

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