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,…
Author
Released
1/29/2019- 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
Duration
Views
Related Courses
-
Building Your First iOS App
with Todd Perkins1h 7m Beginner
-
Introduction
-
1. Getting Started
-
Install Xcode41s
-
Explore the user interface4m 21s
-
Use tabs52s
-
Open files quickly1m 6s
-
View the Xcode documentation1m 20s
-
Groups and folder references4m 11s
-
-
2. Edit Code
-
Custom documentation2m 54s
-
Create snippets2m 11s
-
Use the Symbol Navigator1m 44s
-
Prototype in a playground2m 46s
-
3. Source Control
-
Commit and push changes3m 50s
-
Branches and merging2m 52s
-
Using the version editor2m 38s
-
Resolve merge conflicts4m 28s
-
Clone a branch59s
-
4. Interface Builder Basics
-
Explore Interface Builder3m 59s
-
Use the Inspector3m 33s
-
Understanding pinning5m 17s
-
Refine pins3m 37s
-
Import and use images3m 46s
-
-
5. Compile and Debug
-
Work with schemes3m 32s
-
Use behaviors1m 46s
-
Use the debugger3m 42s
-
Work with breakpoints4m 21s
-
Refactor code1m 51s
-
Create unit tests5m 1s
-
-
6. Workspaces
-
Create a workspace2m 51s
-
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Custom documentation