pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

      • <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="5hbljp7" 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="ndrr775" 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="hlh5zdt" 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>

                          • 主站蜘蛛池模板: bkzzy在职研究生网 - 在职研究生招生信息咨询平台 | 釜溪印象网络 - Powered by Discuz! | 泵阀展|阀门展|水泵展|流体机械展 -2025上海国际泵管阀展览会flowtech china | 高扬程排污泵_隔膜泵_磁力泵_节能自吸离心水泵厂家-【上海博洋】 | 骨灰存放架|骨灰盒寄存架|骨灰架厂家|智慧殡葬|公墓陵园管理系统|网上祭奠|告别厅智能化-厦门慈愿科技 | 工控机,嵌入式主板,工业主板,arm主板,图像采集卡,poe网卡,朗锐智科 | 常州企业采购平台_常州MRO采购公司_常州米孚机电设备有限公司 | 气动机械手-搬运机械手-气动助力机械手-山东精瑞自动化设备有限公司 | 无负压供水设备,消防稳压供水设备-淄博创辉供水设备有限公司 | 杭州中央空调维修_冷却塔/新风机柜/热水器/锅炉除垢清洗_除垢剂_风机盘管_冷凝器清洗-杭州亿诺能源有限公司 | 超细粉碎机|超微气流磨|气流分级机|粉体改性设备|超微粉碎设备-山东埃尔派粉碎机厂家 | 电伴热系统施工_仪表电伴热保温箱厂家_沃安电伴热管缆工业技术(济南)有限公司 | 旗杆生产厂家_不锈钢锥形旗杆价格_铝合金电动旗杆-上海锥升金属科技有限公司 | 手表腕表维修保养鉴定售后服务中心网点 - 名表维修保养 | SMN-1/SMN-A ABB抽屉开关柜触头夹紧力检测仪-SMN-B/SMN-C-上海徐吉 | 广州印刷厂_广州彩印厂-广州艺彩印务有限公司 | 广东护栏厂家-广州护栏网厂家-广东省安麦斯交通设施有限公司 | 立式矫直机_卧式矫直机-无锡金矫机械制造有限公司 | 佛山商标注册_商标注册代理|专利注册申请_商标注册公司_鸿邦知识产权 | 石英砂矿石色选机_履带辣椒色选机_X光异物检测机-合肥幼狮光电科技 | 集装箱箱号识别_自重载重图像识别_铁路车号自动识别_OCR图像识别 | 非小号行情 - 专业的区块链、数字藏品行情APP、金色财经官网 | 强效碱性清洗剂-实验室中性清洗剂-食品级高纯氮气发生器-上海润榕科学器材有限公司 | 安全,主动,被动,柔性,山体滑坡,sns,钢丝绳,边坡,防护网,护栏网,围栏,栏杆,栅栏,厂家 - 护栏网防护网生产厂家 | 氮化镓芯片-碳化硅二极管 - 华燊泰半导体 | 硫化罐_蒸汽硫化罐_大型硫化罐-山东鑫泰鑫智能装备有限公司 | 线材成型机,线材折弯机,线材成型机厂家,贝朗自动化设备有限公司1 | 滁州高低温冲击试验箱厂家_安徽高低温试验箱价格|安徽希尔伯特 | 衬氟止回阀_衬氟闸阀_衬氟三通球阀_衬四氟阀门_衬氟阀门厂-浙江利尔多阀门有限公司 | 德国UST优斯特氢气检漏仪-德国舒赐乙烷检测仪-北京泽钏 | 四川成人高考_四川成考报名网| 实体店商新零售|微赢|波后|波后合作|微赢集团 | 深圳市万色印象美业有限公司| 顺辉瓷砖-大国品牌-中国顺辉 | 板框压滤机-隔膜压滤机-厢式压滤机生产厂家-禹州市君工机械设备有限公司 | 牛奶检测仪-乳成分分析仪-北京海谊 | 招商帮-一站式网络营销服务|互联网整合营销|网络推广代运营|信息流推广|招商帮企业招商好帮手|搜索营销推广|短视视频营销推广 | 山东信蓝建设有限公司官网 | 烟雾净化器-滤筒除尘器-防爆除尘器-除尘器厂家-东莞执信环保科技有限公司 | 膏剂灌装旋盖机-眼药水灌装生产线-西林瓶粉剂分装机-南通博琅机械科技 | 无线遥控更衣吊篮_IC卡更衣吊篮_电动更衣吊篮配件_煤矿更衣吊篮-力得电子 |