Where do you see the result of “#pragma mark” in Xcode 4?

淺唱寂寞╮ 提交于 2019-12-04 20:35:38

问题


I'm trying to find where I can see the result of #pragma marks in Xcode 4 but can't seem to find it.

The reference here talks about the grouping in the Function Menu but I can't seem to find this in Xcode 4 ?


回答1:


When you have the file selected in XCode, in the bar above the editor area (known as the Jump Bar), you might see something to the effect of "Project Name > Classes > Filename > No Selection." Click on "No Selection". Your #pragma marks will fill out this area.




回答2:


You can see it by clicking on "No Selection":




回答3:


If you include a #pragma mark, it will become more readable.

Thank you. It's very simple but not easy to find it.




回答4:


Along with pragma entries, Xcode will also display points where a comment begins with "\TODO: " Great way to leave and find breadcrumbs for follow-up work.



来源:https://stackoverflow.com/questions/5358291/where-do-you-see-the-result-of-pragma-mark-in-xcode-4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!