如何为iOS应用程序创建objective-C Framework [英] How can I create objective-C Framework for iOS Application

查看:112
本文介绍了如何为iOS应用程序创建objective-C Framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一些可以在很多应用程序中重用的泛型类。

I am in the middle of creating some generic classes that can be reusable for lot of application.

对于Eg:Share Functions - 如果我们需要这个功能项目然后我们当前我需要在该项目中添加一组类并在该组文件中显示视图控制器。在此视图控制器中有按钮以及所有需要处理共享的内容。

For Eg: Share Functions - if we need this functionality in a project then we currently I need to add a group of classes into that project and display the view-controller in that group of files, In this view controller there is buttons and what all need to handle sharing.

我的想法是,如果项目需要这样的功能,他们需要添加框架并在其中调用函数或在框架中显示指定的视图,即。没有为您执行该项目的代码级访问权限。因此,如果在通用类(框架)中发现任何问题,我需要修复它并重新创建框架并更改使用此框架的所有项目,而不会影响现有项目。

what my idea is if a project need such a functionality they need to add a framework and call a function in it or display the specified view in framework ie. no code level access given to whom you do that project. so if any issue is found in that generic classes (framework) I need to fix it and recreate the framework and change in the all project that uses this framework without affecting the existing project.

我不仅认为共享功能。更像是图像滑块,PDF查看器,浏览器。封面流程。目前我有所有这些功能的代码。但是,将其整合并使用它需要花费太多时间。如果发现任何问题,我们需要更改所有项目源类。

I am think not only the sharing function. More like a Image Slider, a PDF Viewer , a Browser. a Cover Flow. Currently I have code for all this Functions. But it take too much time to others to integrate it and use it. If any issue found we need to change the all project source classes.

我在谷歌浏览了几个链接

I go through several links in google

我可以制定自己的目标 - Cocoa Touch应用程序的C框架?

http://www.cocoanetics.com/2010/04/universal-static-libraries/

为Cocoa(触摸)开发创建自己的库的指南

我无法理解它是如何使用的,其中一些还没有完全解释它。这些链接中缺少一些。

I cannot understand how it use and some of them have not explain it fully. some missing in those links.

提前感谢

推荐答案

检查关于创建静态iOS框架的指南:

Check out this guide on creating static iOS frameworks:

https ://github.com/jverkoey/iOS-Framework

这篇关于如何为iOS应用程序创建objective-C Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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