Xcode and #pragma mark
来源:互联网 发布:淘宝买家好评率99% 编辑:程序博客网 时间:2024/06/08 08:29
原帖地址:http://macdevelopertips.com/xcode/xcode-and-pragma-mark.html
I’ve started using #pragma mark directives in my code to help with organization as my implementation files grow. #pragma mark is simple to use, for example, insert the following to call out initialization code:
#pragma mark -#pragma mark Initialization
Once this is in place, the Functions Menu (in the navigation bar) which shows a list of locations within a source file (e.g. definitions of classes, functions and methods) will display a new marker with the label “Initialization.” The code in line 1 will add a line separator inside the Functions Menu, in this example, with the line appearing above the “Initialization” marker.
The figure that follows shows an example of how you might use #pragma mark to divide up various sections of your code.
Two notes:
- You cannot have a space after the “-” in the #pragma mark –
- If your code does not appear as expected (e.g. the separator does not appear), check that ‘Sort list alphabetically’ is not checked in the Code Sense preference settings.
- Xcode and #pragma mark
- Xcode and #pragma mark
- Xcode and #pragma mark
- Xcode and #pragma mark
- Xcode and #pragma mark
- XCODE #pragma mark
- xcode object-c #pragma mark 的作用
- #pragma mark
- #pragma mark -
- #pragma mark
- #pragma mark
- #pragma mark
- #pragma mark
- IOS开发之----XCode代码注释#pragma mark使用
- #pragma mark-->#pragma
- Swift’s Answer to #pragma mark, FIXME and TODO
- #pragma mark的用法
- #pragma mark的用法
- C++对象的内存布局
- java设计模式之——代理模式
- 【密钥算法】Java加密技术(七)---ECC 数据加密算法
- 开贴搞航模
- 【密钥算法】Java加密技术(八)---Java证书体系
- Xcode and #pragma mark
- UVa - 1619 - Feel Good
- 常用的JQuery数字类型验证正则表达式整理
- 第十六周oj刷题——Problem C: B 求类中数据成员的最大值-类模板
- 图文理解css浮动
- 怎么把一个硬件的驱动程序打包到自己的应用程序的安装程序里
- 防范用户通过篡改 文件后缀名的方式欺骗服务器,使用二进制流的方式读取文件头文件,将头文件转换为16 进制
- 【shell脚本】mysql每日备份shell脚本
- 调用css时,用link 和 @import url 有什么区别