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="8mgekwg" 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="guq0k02" 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="gqwwc0m" 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>

                          • 主站蜘蛛池模板: 高温高压釜(氢化反应釜)百科 | 冷凝锅炉_燃气锅炉_工业燃气锅炉改造厂家-北京科诺锅炉 | 卫生纸复卷机|抽纸机|卫生纸加工设备|做卫生纸机器|小型卫生纸加工需要什么设备|卫生纸机器设备多少钱一台|许昌恒源纸品机械有限公司 | 体感VRAR全息沉浸式3D投影多媒体展厅展会游戏互动-万展互动 | 工业设计,人工智能,体验式3D展示的智能技术交流服务平台-纳金网 J.S.Bach 圣巴赫_高端背景音乐系统_官网 | 全自动包装机_灌装机生产厂家-迈驰包装设备有限公司 | 凝胶成像系统(wb成像系统)百科-上海嘉鹏 | 浙江红酒库-冰雕库-气调库-茶叶库安装-医药疫苗冷库-食品物流恒温恒湿车间-杭州领顺实业有限公司 | 深圳昂为官网-气体分析仪,沼气分析仪,动态配气仪,气体传感器厂家 | 济南展厅设计施工_数字化展厅策划设计施工公司_山东锐尚文化传播有限公司 | 细砂提取机,隔膜板框泥浆污泥压滤机,螺旋洗砂机设备,轮式洗砂机械,机制砂,圆锥颚式反击式破碎机,振动筛,滚筒筛,喂料机- 上海重睿环保设备有限公司 | 陶瓷砂磨机,盘式砂磨机,棒销式砂磨机-无锡市少宏粉体科技有限公司 | 间苯二酚,间苯二酚厂家-淄博双和化工 | TPE塑胶原料-PPA|杜邦pom工程塑料、PPSU|PCTG材料、PC/PBT价格-悦诚塑胶 | 专业甜品培训学校_广东糖水培训_奶茶培训_特色小吃培训_广州烘趣甜品培训机构 | 海鲜池-专注海鲜鱼缸、移动海鲜缸、饭店鱼缸设计定做-日晟水族厂家 | 武汉不干胶印刷_标签设计印刷_不干胶标签印刷厂 - 武汉不干胶标签印刷厂家 | 选宝石船-陆地水上开采「精选」色选机械设备-青州冠诚重工机械有限公司 | 中控室大屏幕-上海亿基自动化控制系统工程有限公司 | SDI车窗夹力测试仪-KEMKRAFT方向盘测试仪-上海爱泽工业设备有限公司 | 耐高温风管_耐高温软管_食品级软管_吸尘管_钢丝软管_卫生级软管_塑料波纹管-东莞市鑫翔宇软管有限公司 | 绿萝净除甲醛|深圳除甲醛公司|测甲醛怎么收费|培训机构|电影院|办公室|车内|室内除甲醛案例|原理|方法|价格立马咨询 | 桁架机器人_桁架机械手_上下料机械手_数控车床机械手-苏州清智科技装备制造有限公司 | 舞台木地板厂家_体育运动木地板_室内篮球馆木地板_实木运动地板厂家_欧氏篮球地板推荐 | 一体化净水器_一体化净水设备_一体化水处理设备-江苏旭浩鑫环保科技有限公司 | 中图网(原中国图书网):网上书店,尾货特色书店,30万种特价书低至2折! | 南京办公用品网-办公文具用品批发-打印机耗材采购 | 专业音响设备_舞台音响设备_会议音响工程-首选深圳一禾科技 | 防火门-专业生产甲级不锈钢钢质防火门厂家资质齐全-广东恒磊安防设备有限公司 | 深圳侦探联系方式_深圳小三调查取证公司_深圳小三分离机构 | 空气净化器租赁,空气净化器出租,全国直租_奥司汀净化器租赁 | 离子色谱自动进样器-青岛艾力析实验科技有限公司 | NM-02立式吸污机_ZHCS-02软轴刷_二合一吸刷软轴刷-厦门地坤科技有限公司 | 大型冰雕-景区冰雕展制作公司,3D创意设计源头厂家-[赛北冰雕] | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 深圳工程师职称评定条件及流程_深圳职称评审_职称评审-职称网 | 干洗加盟网-洗衣店品牌排行-干洗设备价格-干洗连锁加盟指南 | 捆扎机_气动捆扎机_钢带捆扎机-沈阳海鹞气动钢带捆扎机公司 | 大米加工设备|大米加工机械|碾米成套设备|大米加工成套设备-河南成立粮油机械有限公司 | 健康管理师报考条件,考试时间,报名入口—首页 | 高尔夫球杆_高尔夫果岭_高尔夫用品-深圳市新高品体育用品有限公司 |