O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

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

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 ...

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