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>

                          • 主站蜘蛛池模板: 切铝机-数控切割机-型材切割机-铝型材切割机-【昆山邓氏精密机械有限公司】 | 昆明网络公司|云南网络公司|昆明网站建设公司|昆明网页设计|云南网站制作|新媒体运营公司|APP开发|小程序研发|尽在昆明奥远科技有限公司 | QQ房产导航-免费收录优秀房地产网站_房地产信息网 | 金属切削液-脱水防锈油-电火花机油-抗磨液压油-深圳市雨辰宏业科技发展有限公司 | 雨水收集系统厂家-雨水收集利用-模块雨水收集池-徐州博智环保科技有限公司 | 广州迈驰新GMP兽药包装机首页_药品包装机_中药散剂包装机 | 分光色差仪,测色仪,反透射灯箱,爱色丽分光光度仪,美能达色差仪维修_苏州欣美和仪器有限公司 | hdpe土工膜-防渗膜-复合土工膜-长丝土工布价格-厂家直销「恒阳新材料」-山东恒阳新材料有限公司 ETFE膜结构_PTFE膜结构_空间钢结构_膜结构_张拉膜_浙江萬豪空间结构集团有限公司 | 云南成考网_云南成人高考报名网 粤丰硕水性环氧地坪漆-防静电自流平厂家-环保地坪涂料代理 | 铝镁锰板_铝镁锰合金板_铝镁锰板厂家_铝镁锰金属屋面板_安徽建科 | 媒介云-全网整合营销_成都新闻媒体发稿_软文发布平台 | 便携式表面粗糙度仪-彩屏硬度计-分体式粗糙度仪-北京凯达科仪科技有限公司 | 一点车讯-汽车网站,每天一点最新车讯! | 家德利门业,家居安全门,别墅大门 - 安徽家德利门业有限公司 | AGV叉车|无人叉车|AGV智能叉车|AGV搬运车-江西丹巴赫机器人股份有限公司 | 上海平衡机-单面卧式动平衡机-万向节动平衡机-圈带动平衡机厂家-上海申岢动平衡机制造有限公司 | 亮化工程,亮化设计,城市亮化工程,亮化资质合作,长沙亮化照明,杰奥思【官网】 | 聚合氯化铝-碱式氯化铝-聚合硫酸铁-聚氯化铝铁生产厂家多少钱一吨-聚丙烯酰胺价格_河南浩博净水材料有限公司 | 磁粉制动器|张力控制器|气胀轴|伺服纠偏控制器整套厂家--台灵机电官网 | 超声波焊接机,振动摩擦焊接机,激光塑料焊接机,超声波焊接模具工装-德召尼克(常州)焊接科技有限公司 | 石牌坊价格石牌坊雕刻制作_石雕牌坊牌楼石栏杆厂家_山东嘉祥石雕有限公司 | 卧涛科技有限公司科技项目申报公司|高新技术企业申报|专利申请 | 水轮机密封网 | 水轮机密封产品研发生产厂家 | 盛源真空泵|空压机-浙江盛源空压机制造有限公司-【盛源官网】 | 日本细胞免疫疗法_肿瘤免疫治疗_NK细胞疗法 - 免疫密码 | 佛山市钱丰金属不锈钢蜂窝板定制厂家|不锈钢装饰线条|不锈钢屏风| 电梯装饰板|不锈钢蜂窝板不锈钢工艺板材厂家佛山市钱丰金属制品有限公司 | ◆大型吹塑加工|吹塑加工|吹塑代加工|吹塑加工厂|吹塑设备|滚塑加工|滚塑代加工-莱力奇塑业有限公司 | 水热合成反应釜-防爆高压消解罐-西安常仪仪器设备有限公司 | 铁艺,仿竹,竹节,护栏,围栏,篱笆,栅栏,栏杆,护栏网,网围栏,厂家 - 河北稳重金属丝网制品有限公司 山东太阳能路灯厂家-庭院灯生产厂家-济南晟启灯饰有限公司 | 订做不锈钢_不锈钢定做加工厂_不锈钢非标定制-重庆侨峰金属加工厂 | 座椅式升降机_无障碍升降平台_残疾人升降平台-南京明顺机械设备有限公司 | 驾驶式洗地机/扫地机_全自动洗地机_工业洗地机_荣事达工厂官网 | 成都LED显示屏丨室内户外全彩led屏厂家方案报价_四川诺显科技 | 盐城网络公司_盐城网站优化_盐城网站建设_盐城市启晨网络科技有限公司 | 免费个人pos机申请办理-移动pos机刷卡-聚合收款码办理 | 天然鹅卵石滤料厂家-锰砂滤料-石英砂滤料-巩义东枫净水 | 福建成考网-福建成人高考网| 胶泥瓷砖胶,轻质粉刷石膏,嵌缝石膏厂家,腻子粉批发,永康家德兴,永康市家德兴建材厂 | 河南15年专业网站建设制作设计,做网站就找郑州启凡网络公司 | 武汉天安盾电子设备有限公司 - 安盾安检,武汉安检门,武汉安检机,武汉金属探测器,武汉测温安检门,武汉X光行李安检机,武汉防爆罐,武汉车底安全检查,武汉液体探测仪,武汉安检防爆设备 | 天津暖气片厂家_钢制散热器_天津铜铝复合暖气片_维尼罗散热器 |