在目标C中创建一个"dll" [英] Create a 'dll' in Objective C

查看:63
本文介绍了在目标C中创建一个"dll"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仍在阅读初学者教科书,但没有地方解释如何创建和引用"dll".我以为它的名称有所不同,但是例如,如果我想创建一个dll来存储我所有的LocaleHelper代码,我将如何创建它然后再引用它.

I am still going through a beginners textbook but nowhere does it explain how to create and reference a 'dll'. I assume its called something different but if I wanted to for example create a dll to store all my LocaleHelper code, how would I go about creating it and then referencing it.

我在xcode中看到您不能添加多个项目?

I see in xcode you can't add more than one project?

推荐答案

为MAc(和iPhone)开发与为Windows开发非常不同.该应用程序只应包含该应用程序所需的所有代码.

Developing for MAc (and iPhone) is very different to developing for Windows. Any code that is only required for that application should be included within the application.

如果您是可重用的代码之后,则应考虑创建一个框架,并将其包含在您的项目中.

If you are aafter re-useable code you should look into creating a framework, and include that in your project.

如果不需要创建框架,则可以使用XCode中的文件夹将类分类为适当的组.

If you do not need to create a framework, you could use folder within XCode to sort your classes into appropriate groups.

(在Windows开发中)具有大量DLL文件通常被视为部署应用程序的问题(尝试在Google中搜索DLL Hell).使用Objective-C/XCode进行编程可让您比较不同的编程模式和实践,并决定哪种方法最有效.

Having lots of DLL files (in Windows development) is often seen as an issue for deployement of applications (try searching for DLL Hell in google). Programming in Objective-C/XCode will allow you to compare the different programming patterns and practices and make up your own mind over which way works best.

这篇关于在目标C中创建一个"dll"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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