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

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

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

      <legend id='fggjN'><style id='fggjN'><dir id='fggjN'><q id='fggjN'></q></dir></style></legend>

        iOS 如何使用私有 API?

        iOS How to use private API?(iOS 如何使用私有 API?)

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

                • <small id='P2VaO'></small><noframes id='P2VaO'>

                  <legend id='P2VaO'><style id='P2VaO'><dir id='P2VaO'><q id='P2VaO'></q></dir></style></legend>
                  本文介紹了iOS 如何使用私有 API?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我不想將此應用提交到 AppStore.我已經嘗試了很多次,但遇到了很多問題:(

                  I don't want to submit this app to AppStore. I've tried for many times but met so many problems :(

                  我使用 class-dump 來獲取 UIKit.framework 的所有頭文件.在class-dump生成的UIApplication.h中,看到了我要使用的方法----launchApplicationWithIdentifier.

                  I use class-dump to get all the header files of UIKit.framework. In the UIApplication.h generated by class-dump, I saw the method I want to use----launchApplicationWithIdentifier.

                  然后我將 UIApplication.h 放入我的項目中并導入它.編譯,我得到了很多重新定義枚舉器......"錯誤,因為在我之前使用的 UIKit.framework 中,還有另一個 UIApplication.h.但是這個文件沒有launchApplicationWithIdentifier方法.

                  Then I put UIApplication.h in my project and import it. Compile, I got a lot of "Redefinition of enumerator...." error because in the UIKit.framework I use previous, there's another UIApplication.h. But this file doesn't have the method launchApplicationWithIdentifier.

                  如果我刪除之前的 UIKit.framework 并導入 class-dump 生成的文件夾.然后它看起來像一個框架,但如果我展開它,它是空的.

                  If I delete the previous UIKit.framework and import the folder generated by class-dump. Then it appears like a framework but if I unfold it, it's empty.

                  然后我想讓所有生成的頭文件成為一個框架文件,替換之前的UIKit.framework.但我不知道怎么做.我們可以看到,在系統框架目錄下,有一個與框架同名的文件,并且有一個已執行的shell腳本"圖標.我怎樣才能制作這個文件?

                  Then I want to make all generated header files a framework file ant replace the previous UIKit.framework. But I don't know how. As we can see, under the system framework directory, there's a file which has the same name as the framework and has a 'executed shell script' icon. How can I made this file?

                  我真的很困惑.有人可以幫我一把嗎?謝謝.

                  I really got confused. Someone can give me a hand? Thank you.

                  推薦答案

                  只要在你想使用的類實現上面的類別接口中指定私有方法,像這樣:

                  Just specify the private methods in a category interface above the class implementation where you want to use it, like this:

                  @interface UIApplication (Private)
                  
                  - (BOOL)launchApplicationWithIdentifier:(id)identifier suspended:(BOOL)suspended;
                  
                  @end
                  

                  不要導入整個類轉儲文件并與原始 UIKit 框架鏈接.

                  Don't import the whole class-dump file and link with the original UIKit framework.

                  使用私有 API 時必須非常小心.這些方法可以在未來的 iOS 版本中更改或刪除!

                  You must be very careful when using private API. These methods can change or be removed in future iOS versions!

                  在運行時用 respondsToSelector: 檢查方法是否真的存在,并為它不存在的情況做好準備.

                  Check if the method really exists with respondsToSelector: at runtime and be prepared for the case that it does not exist.

                  我在自己的應用程序中使用了一個秘密的 MapKit 功能,并且我知道私有方法僅存在于 iOS 5 中.所以我的應用程序仍然適用于所有 iOS 版本,但此功能僅在 iOS 5 中可用(Apple 刪除或更改了它在 iOS 6 beta 1) 中.

                  I used a secret MapKit feature in my own application and I knew that the private methods only exist in iOS 5. So my app still works in all iOS versions but this feature is only available in iOS 5 (Apple removed or changed it in iOS 6 beta 1).

                  這篇關于iOS 如何使用私有 API?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 屬性))
                  <i id='n68L6'><tr id='n68L6'><dt id='n68L6'><q id='n68L6'><span id='n68L6'><b id='n68L6'><form id='n68L6'><ins id='n68L6'></ins><ul id='n68L6'></ul><sub id='n68L6'></sub></form><legend id='n68L6'></legend><bdo id='n68L6'><pre id='n68L6'><center id='n68L6'></center></pre></bdo></b><th id='n68L6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='n68L6'><tfoot id='n68L6'></tfoot><dl id='n68L6'><fieldset id='n68L6'></fieldset></dl></div>

                        <tbody id='n68L6'></tbody>
                      1. <tfoot id='n68L6'></tfoot>
                          <bdo id='n68L6'></bdo><ul id='n68L6'></ul>

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

                          <legend id='n68L6'><style id='n68L6'><dir id='n68L6'><q id='n68L6'></q></dir></style></legend>

                          • 主站蜘蛛池模板: 精品综合网 | 国产成人精品免费视频 | 亚洲va视频| a一级黄色片 | 五月婷婷影院 | 免费a在线观看 | 黄色大片网站 | 毛片毛片毛片毛片毛片 | 日韩中文在线视频 | 日韩av一区二区三区四区 | 放几个免费的毛片出来看 | 91们嫩草伦理 | 欧美a级黄色片 | 成人免费网站 | 一级黄色av| 国产精品九九 | 91亚洲精品在线 | 国产永久精品 | 国产一区二区在线播放 | 夜夜嗨av一区二区三区 | 在线观看黄色片 | 日韩欧美国产一区二区三区 | 99热这里| 91精品国产综合久久久久久 | 午夜看片 | 亚洲男人在线 | 女子spa高潮呻吟抽搐 | 成人av一区二区三区在线观看 | 91欧美激情一区二区三区成人 | 国产麻豆精品视频 | 在线观看中文字幕 | 黄色一级片视频 | 大尺度性做爰的小说金陵春 | 亚洲 欧美 激情 另类 校园 | 久久国产精品视频 | 亚洲精品黄色 | 欧美不卡一区 | 五月天激情视频 | 一级黄色网| 99精品网站 | 黄色网址在线免费观看 |