iOS Dev Nugget 57 Triple Slash To Make Comments Appear in Xcode Help


Need to run a code review on your codebase? Hire me

In Xcode 5, you can make your comments appear in the Xcode opt-click pop-up help by using 3 slashes (///) instead of 2.

Example, you'd normally write:

//This comment has 2 slashes
- (void)logout;

Instead, you write:

///This comment has 3 slashes
- (void)logout;

This is especially helpful if you judiciously document your header files.

Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No


Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter


View archives of past issues