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.
精彩评论