iphone使用#pragma

#pragma mark -
#pragma mark custom method

加上这样的标识后在导航条会显示源文件的方法列表

custom method上显示的边框为#pragma mark -定义,如果没有"-"则显示空行。

这样就可以对功能相关的方法进行分隔,方便查看了。

url:http://macdevelopertips.com/xcode/xcode-and-pragma-mark.html

原文地址:https://www.cnblogs.com/zaric/p/2003721.html