Iphone dev 中包含的 PHP 等效项吗?
我刚刚注意到我在项目中从一个类到另一个类得到了很多冗余代码(如菜单或按钮);)
有什么方法可以优化它吗?
谢谢 !
戈蒂耶。
I just noticed I get a lot of redondant code from one class to another in my project (like menus or buttons) ;)
Is there any way to optimize it ?
Thank you !
Gotye.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我确信 Objective-C 中有 #include 指令
I am sure there is #include directive in Objective-C
使用类作为公共代码。或者重构多个类并将其基于抽象超类。或者使用常规 C 函数。或者使用 类别 向库函数添加方法。
Use classes for common code. Or refactor and base several classes on an abstract superclass. Or use regular C functions. Or use categories to add methods to library functions.