我如何创建iPhone框架并在其他iPhone应用程序中使用它 [英] How do I create an iPhone framework and use it in other iPhone applications

查看:145
本文介绍了我如何创建iPhone框架并在其他iPhone应用程序中使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为一些可重用的代码创建一个框架,我想将其包含在其他iPhone应用程序中。什么是最好的方式来做到这一点?理想情况下,我希望它能够像内置框架一样工作,并让应用程序使用它,而不需要用构建文件。

Apple禁止在iPhone上使用自定义框架。但是你可以使用好的旧静态库。在3.0 GM SDK中甚至还有一个项目模板,但您也可以自己设置一个静态库目标。


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 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应用程序中使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆