O'Reilly logo

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

Refactoring in Xcode

Refactoring is the disciplined practice of making small changes to a codebase that alters its internal structure without changing its perceived behavior. Xcode offers a handful of refactoring tools; the rest we’ll do by ourselves.

Where do we start? Well, we’ve sketched out our idea for using multiple view controllers, and once we’ve gone ahead and done that, the default name of our current ViewController is going to be a liability, since we might well ask, “Which view controller?” Let’s rename it to clear up any future confusion.

Renaming

What should we call it? Looking at its functionality, we could call this something like TweetListViewController. However, in navigation-based apps, we typically refer to the first view ...

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