3. Interface and API Design

Once you have built an application, you are likely going to want to reuse parts of the code for future projects. You may even want to release some of the code for others to use. Even if you don’t think that you’re going to do either of these things, you probably will at some point. When you do, it’ll help to write your interfaces in such a way that they fit in. This means using paradigms commonly used with Objective-C and understanding various pitfalls.

Over recent years, especially with the open-source community and components made popular with the advent of iOS, it is common to use other people’s code in your own applications. Similarly, others may end up using your code, so writing in a clear way will enable them ...

Get Effective Objective-C 2.0: 52 Specific Ways to Improve Your iOS and OS X Programs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.