Wednesday, December 31, 2014

iOS Header Docs and Snippets

Creating code snippet for code documentation is an easy way to manage the template for code documentation. E.g. below will generate a method template 

/*
*  @brief <#description>
*  @param <#param description>
*  @param <#param description>
*   
*  @return <#return description>
*/

By selecting this drag and drop into the snippet area and give the proper name and description. In the shortcut space, write something like doccomment. 
On the method signature to the extrement left, i..e left to the - symbol, start typing doccomment. Xcode will fill in the template snippet. Each items those are put under the 
<#> format will be navigable by using tab. This is so cool. 

References:

1 comment:

  1. I just want to thank you for sharing your information and your site or blog this is simple but nice Information I’ve ever seen i like it i learn something today. Recycle Apple Developer Enterprise Account

    ReplyDelete