read

This reserved word is used to group methods/functions, to see them organized in xcode method list.

If you add a ‘-‘ character in the mark a bar will apear in xcode method list
<blockquote>#pragma mark -</blockquote>


Example:

<pre style="background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> #pragma mark -
#pragma mark Initialization
-(...)initWithStyle:...
#pragma mark -
#pragma mark Table Managment
-(...)numberOfSectionInTableView:...
-(...)tableView:numberOfRowsInSection:..
...
#pragma mark -
#pragma mark Managing Views
-(...)viewDidLoad:...
-(...)viewDidAppear:...
...
</pre>
XCode result:




Source

Blog Logo

Daniel Gomez Rico


Published

Image

MakinGIANTS

The findings and tips records of an Android-iOS-TheWholeShabang group

Back to Overview