久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

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

  2. <tfoot id='FBWGd'></tfoot>
    • <bdo id='FBWGd'></bdo><ul id='FBWGd'></ul>

      iOS6 中未調用 shouldAutoRotate 方法

      shouldAutoRotate Method Not Called in iOS6(iOS6 中未調用 shouldAutoRotate 方法)
        • <bdo id='WSoEs'></bdo><ul id='WSoEs'></ul>

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

          <tfoot id='WSoEs'></tfoot>
            <tbody id='WSoEs'></tbody>

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

            • <legend id='WSoEs'><style id='WSoEs'><dir id='WSoEs'><q id='WSoEs'></q></dir></style></legend>

              1. 本文介紹了iOS6 中未調用 shouldAutoRotate 方法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我有一個 UIViewController 詳細視圖,它是從 UINavigationController 中的 UITableView 推送的.在 UIViewController 我添加了一些子視圖(例如 UITextView、UIImageView).

                I have a UIViewController detail view which is pushed from a UITableView in a UINavigationController. In the UIViewController I add a number of subviews (e.g a UITextView, UIImageView).

                iOS5 中,如果我的圖片視圖被放大,我使用此代碼停止自動旋轉:

                In iOS5 I used this code to stop autorotation if my picture view was enlarged :

                - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
                {
                // Return YES for supported orientations
                if (scrollView.isZoomed) {
                    return NO;
                }
                else {
                    return YES;
                }
                

                }

                我正在嘗試在 iOS6 下使用:

                I am trying to achieve the same thing under iOS6 using :

                - (BOOL)shouldAutorotate {
                return FALSE;
                }
                

                然而,這個方法永遠不會被調用,并且應用會繼續旋轉.

                However this method is never called and the app continues rotating.

                誰能幫忙?

                推薦答案

                如果您有管理這些視圖的導航控制器,則不會調用 shouldAutorotate 方法.您必須繼承 UINavigationController 并覆蓋方法 shouldAutorotatesupportedIntervalOrientations.

                If you have a Navigation Controller managing these views, the shouldAutorotate method won't be called. You would have to subclass UINavigationController and override methods shouldAutorotate and supportedIntervalOrientations.

                來自文檔:

                現在,iOS 容器(例如 UINavigationController)不會咨詢它們的子容器來確定它們是否應該自動旋轉

                Now, iOS containers (such as UINavigationController) do not consult their children to determine whether they should autorotate

                編輯-----

                正如 Lomax 下面提到的,Apple 不鼓勵子類化 UINavigationController.您應該嘗試一個類別(this SO question解釋得很好):

                As mentioned below by Lomax, subclassing UINavigationController is discouraged by Apple. You should try a category instead (this SO question explains it well):

                @implementation UINavigationController 
                -(BOOL)shouldAutorotate
                {
                    // your code
                }
                
                -(NSUInteger)supportedInterfaceOrientations
                {
                    (...)
                }
                
                @end
                

                這篇關于iOS6 中未調用 shouldAutoRotate 方法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                To stop segue and show alert(停止 segue 并顯示警報)
                iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                Icon already includes gloss effects(圖標已經包含光澤效果)
                How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))

                <legend id='pntWK'><style id='pntWK'><dir id='pntWK'><q id='pntWK'></q></dir></style></legend>
                <tfoot id='pntWK'></tfoot>

                    • <bdo id='pntWK'></bdo><ul id='pntWK'></ul>
                      <i id='pntWK'><tr id='pntWK'><dt id='pntWK'><q id='pntWK'><span id='pntWK'><b id='pntWK'><form id='pntWK'><ins id='pntWK'></ins><ul id='pntWK'></ul><sub id='pntWK'></sub></form><legend id='pntWK'></legend><bdo id='pntWK'><pre id='pntWK'><center id='pntWK'></center></pre></bdo></b><th id='pntWK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pntWK'><tfoot id='pntWK'></tfoot><dl id='pntWK'><fieldset id='pntWK'></fieldset></dl></div>
                    • <small id='pntWK'></small><noframes id='pntWK'>

                            <tbody id='pntWK'></tbody>
                          主站蜘蛛池模板: 91九色porny首页最多播放 | 中文字幕国产精品视频 | 黄色一级毛片 | 成人在线免费av | 精品国产乱码久久久久久1区2区 | 91资源在线| 国产精品福利在线观看 | www.亚洲国产精品 | 国产精品一区二区不卡 | 日韩一级黄色毛片 | 视频一区二区三区中文字幕 | av日韩精品 | 黄网在线观看 | 欧美一区二区在线看 | 日本a网站 | 成人无遮挡毛片免费看 | 亚洲第一在线 | 亚洲av毛片成人精品 | 亚洲一区二区精品 | 久草青青草 | 亚洲人久久| 一本色道久久综合亚洲精品高清 | 亚洲精品中文字幕 | 激情欧美一区二区三区中文字幕 | 欧美一级久久精品 | 亚洲精品国产一区 | 嫩草一区二区三区 | 亚洲精品视频导航 | 日韩精品一二三区 | 成人久久久 | 亚洲人成人网 | 91视频播放 | 性大毛片视频 | 午夜久久| 色综合99 | 国产一区999| 国产一区二区三区在线免费 | 99爱在线 | 国产激情在线观看 | 精品综合久久 | 91精品国产91 |