What We’ve Learned

In this chapter, you learned techniques that are helpful as projects get bigger. We started by organizing our files into groups, which we can expand, put away, and nest within one another, so we can look at just the files we need at any one time.

Then we looked at Xcode’s support for refactoring…which unfortunately still doesn’t exist. Instead, we did our own refactoring to change class names. Then we took on a bigger project: taking the Twitter code in RootViewController and making it a general-purpose function that can be reused by other classes we’ll be creating later. Since it didn’t need to maintain state, we didn’t have to create a helper class, and instead could split it into a function callable from anywhere in our ...

Get iOS 9 SDK Development 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.