Inserting Comments
Your JavaScript experience equips you with everything you need to
know about adding comments to an iOS SDK source code file. Inline comments
begin with two forward slashes (//).
These can appear at the beginning of a line or following the end of a
statement line.
Comment blocks are contained by the /* and */
delimiter sequence. Comment blocks may be any number of lines. See the
tops of any class file generated by Xcode for examples.
One significant advantage to a compiled language is that you can type comments into your source code until your fingers bleed, and they have no bearing on the size of your application binary. Additionally, unlike comments added to client-side JavaScript, your app source code comments will not be visible to consumers of your app.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access