Wrap-Up

In this chapter, we 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 is currently unavailable for Swift but is likely to support it in the near future. 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 class that can be reused by other classes we’ll be creating later. We looked at how iOS uses the delegate pattern to hand off responsibility for special-purpose code: the TwitterAPIRequest ...

Get iOS 8 SDK Development, 2nd Edition 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.