O'Reilly logo

iPhone Applications Tune-Up by Loyal Moses

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code structure

The importance of a consistent code structure is rather important for the overall health of any application. The order in which declarations and methods are placed has a direct impact on maintainability as a project grows in size and scales beyond a few thousand lines of code.

Each of us has experienced the time-wasting frustration of not being able to quickly locate methods and properties. Scrolling and searching our way through classes with thousands of lines of code is not a particularly great use of our time. Having a consistent class structure will keep source code neat and tidy and aid in shortening the transit time we spend jumping between class methods.

One particular strategy that I find helpful for organizing @implementation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required