O'Reilly logo

Xcode 4 iOS Development by Steven F. Daniel

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

Time for action – working with code completion

To accept the auto completion suggestion, follow these simple steps:

  1. Press the Tab key and the code will be inserted just as if you had typed in the whole thing.
  2. Press Return to accept the entire auto completion suggestion. You will notice from the screenshot below that Xcode is smart enough to work out what you intended to type in. As soon as you get to a point in each line, it will display an autocompleted version of the code:
    Time for action – working with code completion

    A Quick Help popup is also available from code completion, even when the Quick Help inspector is not open. Hover over the code completion option you're interested in until a question ...

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