How do I create an iPhone framework and use it in other iPhone applications(如何创建 iPhone 框架并在其他 iPhone 应用程序中使用它)
问题描述
我想为一些我想包含在其他 iPhone 应用程序中的可重用代码创建一个框架.最好的方法是什么?理想情况下,我希望它像内置框架一样工作,并且让应用程序使用它而不用乱搞构建文件.
I would like to create a framework for some reusable code that I would like to include in other iPhone apps. What is the best way to do it? Ideally, I would like it to work just like builtin frameworks and have the app use it without mucking around with build files.
推荐答案
Apple 禁止在 iPhone 上使用自定义框架.但是你可以使用好的旧静态库.在 3.0 GM SDK 中甚至有一个项目模板,但您也可以简单地自己设置一个静态库目标.
Apple prevents the use of custom frameworks on the iPhone. But you can use good old static libraries. In the 3.0 GM SDK there's even a project template for that, but you can also simply set up a static library target yourself.
这篇关于如何创建 iPhone 框架并在其他 iPhone 应用程序中使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何创建 iPhone 框架并在其他 iPhone 应用程序中使用它
基础教程推荐
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
