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

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

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

      1. respondsToSelector 外觀代理失敗

        respondsToSelector fails for appearance proxy(respondsToSelector 外觀代理失敗)

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

                  本文介紹了respondsToSelector 外觀代理失敗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試通過在 [UIBarButtonItem 外觀] 上運行 respondsToSelector 來檢測 iOS 6 特定的外觀方法.但是,無論我指定什么選擇器,它總是為我返回 NO:

                  I’m trying to detect an iOS 6-specific appearance method, by running respondsToSelector on the [UIBarButtonItem appearance]. However, it always returns NO for me, whatever selector I specify:

                  // Should show NOPE in iOS 5, YEP in iOS 6. Shows NOPE always
                  NSLog(@"%@", [[UIBarButtonItem appearance] respondsToSelector:@selector(setBackgroundImage:forState:style:barMetrics:)] ? @"YEP" : @"NOPE"); 
                  
                  // Should show YEP in both iOS 5 and iOS 6. Shows NOPE always
                  NSLog(@"%@", [[UIBarButtonItem appearance] respondsToSelector:@selector(setBackgroundImage:forState:barMetrics:)] ? @"YEP" : @"NOPE"); 
                  

                  實際上,在它們各自的 iOS 版本上使用這些方法都可以正常工作,但我似乎無法檢測到哪一個對我可用.那么我該如何正確地做到這一點呢?

                  Actually using those methods works fine on their respective versions of iOS, but I can’t seem to detect which one is available to me. So how do I properly do that?

                  推薦答案

                  不要檢查外觀代理.你永遠不能依賴它,因為它是一個代理.相反,直接檢查具有新方法的項目,在這種情況下,UIBarButtonItem:

                  Don't check the appearance proxy. You can never rely on that, since it's a proxy. Instead, directly check the item that has the new method, in this case, the UIBarButtonItem:

                  BOOL hasNewMethod = [UIBarButtonItem instancesRespondToSelector:@selector(setBackgroundImage:forState:style:barMetrics:)];
                  if( hasNewMethod )
                    NSLog(@"Running iOS 6 with new method");
                  else
                    NSLog(@"Current OS doesn't support method...");
                  

                  這篇關于respondsToSelector 外觀代理失敗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  iOS 8 requestWhenInUseAuthorization no Popup(iOS 8 requestWhenInUseAuthorization 沒有彈出)
                  Fix Cordova Geolocation Ask for Location Message(修復 Cordova Geolocation 請求位置消息)
                  Calculate new coordinate x meters and y degree away from one coordinate(計算距離一個坐標的新坐標 x 米和 y 度)
                  Get row index of custom cell in UITableview(獲取 UITableview 中自定義單元格的行索引)
                  applicationDidEnterBackground and applicationWillEnterForeground method are not called when pressed home button in iOS simulator(在 iOS 模擬器中按下主頁按鈕時不會調用 applicationDidEnterBackground 和 applicationWillEnterFore
                  ios tabbar put text in the middle when no image(ios標簽欄在沒有圖像時將文本放在中間)

                  <tfoot id='KKblD'></tfoot>

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

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

                          <legend id='KKblD'><style id='KKblD'><dir id='KKblD'><q id='KKblD'></q></dir></style></legend>
                            <tbody id='KKblD'></tbody>
                          1. 主站蜘蛛池模板: 国产精品美女久久久av超清 | 国产一区二区三区在线 | 国产色视频网站 | 一级毛片大全免费播放 | 成人一区二区三区 | 久久区二区 | 午夜寂寞网站 | 日韩视频一区二区 | 欧美日韩中文在线 | 日韩一区二区精品 | 亚洲欧美激情视频 | 免费成人高清在线视频 | 精品久久精品 | 成人精品鲁一区一区二区 | 久久精品国产一区二区电影 | 中文字幕精品一区 | 福利久久 | 久久99精品久久 | 91视频18 | 一区二区三区国产 | 青青草华人在线视频 | 国产一区二区三区免费观看在线 | 亚州一区二区三区 | 91看片网 | 久久久久久网 | 性欧美精品一区二区三区在线播放 | 久久伦理电影 | 热re99久久精品国产99热 | 91久久精品一区二区二区 | 国产乱码精品1区2区3区 | 精品福利av导航 | 日韩a v在线免费观看 | 亚洲成人免费av | 亚洲福利在线观看 | 啪啪av | 精品视频导航 | 中文字幕动漫成人 | 国产精品一区二区视频 | 在线观看亚洲精品视频 | 国产精品视频在 | 国产高清视频在线 |