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 应用程序中使用它


- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- GPS状态的广播接收器? 2022-01-01
- URL编码Swift iOS 2022-01-01
- UITextView 内容插图 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01