iphone使用#pragma

#pragma mark -
#pragma mark custom method

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

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

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

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

posted @ 2011-04-02 16:48  zaric  阅读(296)  评论(0编辑  收藏  举报