#pragma mark Internal API
I’ve seen this in a book called xcode_quick_tour_iphoneOS.
Does someone know about it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
#pragmadirective is a special pre-processor directive that allows the C pre-processor a way to pretty much create “portable” extensions. Basically, when another pre-processor sees a pragma directive that it doesn’t understand, it’s supposed to ignore it.In this case,
#pragma markis meant to aid in documentation. When you add those lines to your source file, Xcode will break up your source code in its jump-to pull-down menu that you can use to jump to specific areas in your code (like function definitions or constant definitions). If you add#pragma mark -, Xcode will add a horizontal separator to the pull-down menu as well.