Xcode has fantastic code completion tools—both for built-in frameworks and your own custom code. In this video, learn how to use Xcode's code completion and how to add Quick Help features to your code.
- [Instructor] As we've looked at previously,…you can click on a built-in method in Xcode…and see the existing documentation on it.…But what if you wanted to add Quick Help…for your own custom methods?…Let's look at how that works.…I have a method here called addNumbers.…If I click inside of addNumbers,…I can actually see some…Quick Help already right out of the box.…We have the declaration,…the parameters listed but with no description.…Let's look at adding our own custom…description for this method.…
I'll get some more space,…and then I'm going to create…a multiline comment above this method.…The difference is I'm going to add two asterisks…at the start of the comment.…On the first line inside of the comment,…I am going to type the description of this method.…Adds two numbers together, and returns the sum.…So after I type that, I can just click on the method now…and I can see the method summary,…so that's already automatically updated in Quick Help.…
If I want to document the parameters,…I can do that with a hyphen,…
- Installing Xcode
- Creating your first project
- Editing code
- Creating snippets
- Prototyping in playgrounds
- Implementing version control with Git
- Building and connecting the interface
- Compiling and debugging apps in Xcode
- Creating workspaces for sharing resources and code
Skill Level Beginner
1. Getting Started
2. Edit Code
3. Source Control
4. Interface Builder Basics
5. Compile and Debug
Create a workspace2m 51s
Next steps1m 5s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.