久久久久久久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:在模態(tài) UIViewController 中播放 Youtube 視頻時 U

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

          <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:在模態(tài) UIViewController 中播放 Youtube 視頻時 UIWebView 出現(xiàn)異常的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  更新:iOS 6 beta 1 上不再出現(xiàn)

                  UPDATE: No longer occurs on iOS 6 beta 1

                  我目前正在使用新的 iOS 5 SDK 調(diào)整現(xiàn)有的 iOS 4 應(yīng)用程序.在讀取 Youtube 視頻的模態(tài)視圖控制器中顯示 UIWebView 時,我發(fā)現(xiàn)了一個新的崩潰.

                  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.

                  開始閱讀視頻很好,但是當(dāng)我嘗試將其設(shè)置為全屏?xí)r,出現(xiàn)以下異常:

                  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>
                  

                  這是我在主視圖控制器中實(shí)例化和呈現(xiàn)模態(tài)視圖控制器的方式:

                  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,當(dāng)我將此值設(shè)置為 UIModalPresentationFullScreen 時,不再出現(xiàn)錯誤.

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

                  在我的模態(tài) 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.

                  謝謝!

                  推薦答案

                  我們通過基本實(shí)現(xiàn)我們自己的模態(tài)視圖轉(zhuǎn)換解決了這個問題.這實(shí)際上很容易做到.我在大約 4 小時內(nèi)完成了它.

                  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.

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

                  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.

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

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

                  相關(guān)文檔推薦

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

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

                            主站蜘蛛池模板: 日韩一区二区三区精品 | 亚洲视频在线一区 | a级黄色片在线观看 | 国产精品18hdxxxⅹ在线 | 日韩欧美一区二区三区免费观看 | 男女啪啪高潮无遮挡免费动态 | www.日日操 | 日本一二区视频 | 久久综合香蕉 | hitomi一区二区三区精品 | 艹逼网 | 亚欧精品一区 | 欧美日韩视频网站 | 久久国产欧美日韩精品 | 国产粉嫩尤物极品99综合精品 | 久久69精品久久久久久久电影好 | 国产一级淫片a直接免费看 免费a网站 | 精品自拍视频 | 国产日批| 视频在线一区二区 | 草草草影院 | 国产精品久久久久久中文字 | www.中文字幕 | 中文字幕一区在线观看视频 | 色视频免费| 国产精品99久 | 欧美视频在线播放 | 亚洲成av人影片在线观看 | 色资源站 | 日本一区二区三区在线观看 | 亚洲第一成人影院 | 欧美成人h版在线观看 | 精品国产免费人成在线观看 | 国产精品永久免费视频 | 欧美日韩第一页 | 国产黄色网址在线观看 | 精品网| 国产精品高潮呻吟久久 | 亚洲欧美一区二区在线观看 | 欧美一级在线观看 | 四虎成人av|