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.
<!-- start wp-tags-to-technorati 0.9 -->
Technorati Tags: #pragma
xcode 默认是 按照 字母顺序排列的。
所以看不到上面的效果, 改一下就好了。
这样的话 ,方法提示好多了。
分享到:
相关推荐
objective-c小技巧 1. 使用@property和@synthesize声明一个成员变量,给其赋值是时要在前面加上"self.",以便调用成员变量的setmember方法。 直接调用成员变量并且给其赋值:member=[NSString stringWithFormat...
iOS Xcode制作模板类 转载请注明出处 为什么要定义模板类 遵守代码规范提高代码可读性, 降低后期维护成本. 当我们定下了一个团队都认同的代码规范, 如我们要求所有的viewController的代码都得按照下面来组织 #pragma...
xCode 搭建 iPhone开发环境全过程
这是在xcode下开发出来的一款计算器。可以上传到app store卖钱的。
该程序是在xcoe中应用opencv开发一个实例的程序,更多信息可以参考我个人博客。
帮助你快速掌握Xcode开发工具。入门级的书籍
iphone 开发 Xcode开发员入门引导
iphone 开发的xcode的一些知识
From the community-driven changes in Swift 3 to the overhaul of iOS' Foundation framework to make it more "Swifty," iOS 10 and Xcode 8 mark an "all in" commitment to Swift, and this new edition ...
iphone开发基础教程是最受欢迎的iPhone开发书籍。 现在献上最新Xcode4.3版。
Xcode iOS 16真机调试包 开发调试 iOS16适配
这是一个完整的代码。对与初学者来说很有帮助!
iphone 开发 Xcode开发员入门引导
Xcode开发环境 Xcode开发环境Xcode开发环境
将Xcode适配可以调试、编译、运行、打包系统版本号为iOS 16.0 版本的设备,解决"Could not find Developer Disk Image"问题
从xcode8中拷贝出来的sdk,方便低版本的xcode使用真机调试。 具体存放位置/Applications/Xcode.app[请确认你的xcode名称]/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 另:找到在“程序”中...
iOS Game Programming with Xcode and Cocos2d(完整版) 自己收集的
用objective C写的实现iPhone上的Pie Chart,Line Chart and Bar Chart的显示和选中,虽不很完美,但比起很多简单的Demo,功能要完善很多。
Xcode 使用技巧 Objective-C学习之路 iphone
xcode 实战,apple平台开发实用技术、技巧及最佳流程,书中源代码。