在目标C中创建一个"dll"

编程入门 行业动态 更新时间:2024-10-26 14:38:35
本文介绍了在目标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"

本文发布于:2023-11-06 22:26:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564843.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:创建一个   目标   dll   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!