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

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

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

          <bdo id='1DOfC'></bdo><ul id='1DOfC'></ul>
      1. <legend id='1DOfC'><style id='1DOfC'><dir id='1DOfC'><q id='1DOfC'></q></dir></style></legend>

        iOS5:在模態 UIViewController 中播放 Youtube 視頻時 U

        iOS5: Exception on UIWebView in modal UIViewController playing Youtube video(iOS5:在模態 UIViewController 中播放 Youtube 視頻時 UIWebView 出現異常)

          <tbody id='Y54ep'></tbody>
        <legend id='Y54ep'><style id='Y54ep'><dir id='Y54ep'><q id='Y54ep'></q></dir></style></legend>

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

                • 本文介紹了iOS5:在模態 UIViewController 中播放 Youtube 視頻時 UIWebView 出現異常的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  更新:iOS 6 beta 1 上不再出現

                  UPDATE: No longer occurs on iOS 6 beta 1

                  我目前正在使用新的 iOS 5 SDK 調整現有的 iOS 4 應用程序.在讀取 Youtube 視頻的模態視圖控制器中顯示 UIWebView 時,我發現了一個新的崩潰.

                  I am currently working on adapting an existing iOS 4 application with the new iOS 5 SDK. I found a new crash when presenting a UIWebView in a modal view controller that reads a Youtube video.

                  開始閱讀視頻很好,但是當我嘗試將其設置為全屏時,出現以下異常:

                  Starting to read the video is fine, but when I try to set it in full screen, I get the following exception :

                  Exception: UIViewControllerHierarchyInconsistency,
                  child view controller:<UIViewController: 0x6aef180> 
                  should have parent view controller:<WebViewController: 0x6a706c0> 
                  but requested parent is:<MPInlineVideoViewController: 0x6ae5d40>
                  

                  這是我在主視圖控制器中實例化和呈現模態視圖控制器的方式:

                  Here is how I instanciate and present my modal view controller in my main view controller :

                  - (IBAction)buttonReleased:(id)sender
                  {
                      WebViewController *webVC = [[WebViewController alloc] initWithNibName:@"WebViewController" bundle:[NSBundle mainBundle]];
                      webVC.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
                      webVC.modalPresentationStyle = UIModalPresentationPageSheet;
                      [self presentModalViewController:webVC animated:YES];
                  }
                  

                  我使用 UIModalPresentationPageSheet 作為 modalPresentationStyle,當我將此值設置為 UIModalPresentationFullScreen 時,不再出現錯誤.

                  I use the UIModalPresentationPageSheet as modalPresentationStyle, when I set this value to UIModalPresentationFullScreen, the error no longer occurs.

                  在我的模態 WebViewController 中,這是我加載 Youtube 視頻的方式:

                  In my modal WebViewController, here is how I load my Youtube video :

                  - (void)viewDidLoad
                  {
                      [super viewDidLoad];
                  
                      [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=bDlm3eLRut0"]]];
                  }
                  

                  對這個問題有什么想法嗎?如果需要,我可以提供一個完整的示例代碼來隔離此崩潰.

                  Any ideas on this problem ? I can provide a full sample code that isolates this crash if needed.

                  謝謝!

                  推薦答案

                  我們通過基本實現我們自己的模態視圖轉換解決了這個問題.這實際上很容易做到.我在大約 4 小時內完成了它.

                  We resolved this by basically implementing our own modal view transitions. It was actually pretty easy to do; I built it in about 4 hours.

                  如果您以模態方式全屏顯示,也可以避免崩潰.表單(表單或頁面表單)是導致崩潰的原因.

                  You can also avoid the crash if you are presenting it modally full screen. Sheets, either form sheets or page sheets, are the causes of the crash.

                  這篇關于iOS5:在模態 UIViewController 中播放 Youtube 視頻時 UIWebView 出現異常的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  CLLocation returning negative speed(CLLocation 返回負速度)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數據中的位置?)
                  Swift: Geofencing / geolocations near user location(Swift:用戶位置附近的地理圍欄/地理位置)
                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經度值)?)
                  How to track the device location (iOS and Android) device using Phonegap(如何使用 Phonegap 跟蹤設備位置(iOS 和 Android)設備)
                  Easiest way of getting reverse geocoded current location from iOS(從 iOS 獲取反向地理編碼當前位置的最簡單方法)

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

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

                        <tbody id='FsR1T'></tbody>

                        • <bdo id='FsR1T'></bdo><ul id='FsR1T'></ul>
                            <tfoot id='FsR1T'></tfoot>

                            主站蜘蛛池模板: 国产精品久久国产精品 | 一区二区三区四区在线视频 | 久久av在线播放 | 亚洲综合二区 | 亚洲三区在线观看 | 久久综合一区二区 | 乱一性一乱一交一视频a∨ 色爱av | 久久久久久免费精品一区二区三区 | 天天干天天玩天天操 | 日韩欧美视频在线 | 国产成人jvid在线播放 | 国产一级黄色网 | 东方伊人免费在线观看 | 亚洲午夜av | 国产一级片久久久 | 免费一区二区 | 99re视频在线观看 | 日韩精品在线一区 | 99re视频在线免费观看 | jizz亚洲人 | 狠狠干综合视频 | 欧美视频免费在线观看 | 久久国产亚洲 | 视频在线一区二区 | 一级做a爰片性色毛片16 | 欧美日韩黄色一级片 | 久久一二 | 成人在线播放 | m豆传媒在线链接观看 | 亚洲一区久久 | 成人免费视频观看 | 91免费在线 | 丝袜 亚洲 欧美 日韩 综合 | 欧美精品国产一区二区 | 亚洲视频国产视频 | 国产精品国产精品国产专区不卡 | 瑟瑟视频在线看 | 日韩视频中文字幕 | 国产精品久久久久久久久久久久 | 久久国产一区 | 欧美日韩三区 |