开发者

Equivalence of PHP includes in Iphone dev?

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.


I am sure there is #include directive in Objective-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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜