久久久久久久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 中未調(diào)用 shouldAutoRotate 方法

      shouldAutoRotate Method Not Called in iOS6(iOS6 中未調(diào)用 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 中未調(diào)用 shouldAutoRotate 方法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

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

                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 中,如果我的圖片視圖被放大,我使用此代碼停止自動旋轉(zhuǎn):

                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;
                }
                

                然而,這個方法永遠不會被調(diào)用,并且應用會繼續(xù)旋轉(zhuǎn).

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

                誰能幫忙?

                推薦答案

                如果您有管理這些視圖的導航控制器,則不會調(diào)用 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.

                來自文檔:

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

                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
                

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

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

                相關(guān)文檔推薦

                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(圖標已經(jīng)包含光澤效果)
                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>
                          主站蜘蛛池模板: 中文字幕av亚洲精品一部二部 | 综合欧美亚洲 | 日韩精品一区二区三区高清免费 | 欧美成人a | 久久国产亚洲精品 | 欧美成年黄网站色视频 | 国产精品一区二区在线播放 | 国产精品一卡二卡三卡 | 在线播放中文字幕 | 美女高潮网站 | 91在线最新 | 超碰日韩| 亚洲精品视频在线观看免费 | 国产精品免费小视频 | 中文字字幕一区二区三区四区五区 | 精品久久久久久久久久 | 精品国产18久久久久久二百 | 在线看h| 国产精品视频久久久 | 欧美h | 亚洲a在线观看 | 日本高清在线一区 | 国产精品资源在线观看 | 欧美性猛交一区二区三区精品 | 秋霞a级毛片在线看 | 日本一区二区三区视频在线 | 免费av一区二区三区 | 欧美日韩国产在线观看 | 牛牛热在线视频 | 性色av一区 | 喷水毛片 | 成人免费在线小视频 | 成人精品鲁一区一区二区 | 久久久久久久久久久久久久av | 九九热精品视频 | 日韩高清在线 | 精品一区二区在线观看 | 亚洲色在线视频 | 国产乱码精品一区二区三区忘忧草 | 欧美日韩理论 | 一本色道精品久久一区二区三区 |