创建自定义框架的步骤 [英] Steps in creating custom frameworks

查看:65
本文介绍了创建自定义框架的步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在可可中创建自定义框架?请告诉我创建一个简单框架的步骤,例如在其类中应该包含两个数字函数。

How can I create custom frameworks in cocoa? Please tell me the steps to create a simple framework like it should contain addition of two number functions in its class.

推荐答案

阅读文档? 《框架编程指南》 回答了一般问题(换句话说,阅读文档,然后问更多有针对性的问题。)

Have you read the documentation? The Framework Programming Guide answers the general question (in other words, read the docs then ask more pointed questions).

如果您只是向现有类中添加方法,则只需使用类别

If you're only adding methods to an existing class, however, just use categories.

这篇关于创建自定义框架的步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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