Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Troy Fine
7,592 PointsSimple Question
What is a pragma mark?
I've seen this used in several videos but I still don't understand what it is or its function in relation to the videos I've seen it in.
It's possible I missed it's explanation somewhere but after reviewing several videos I still see this as a bit of a mystery.
3 Answers
Ben Jakuben
Treehouse TeacherWe talk about pragma marks around the 2:30 mark of this video. Hope that helps! As Cristian mentioned, they are used to help organize code.
Cristian Villalobos
5,099 PointsI think that they are like directives to organize codes in a better way.
Troy Fine
7,592 PointsThank you Ben, the video not only answers the question completely but now I understand how to take advantage of it in Xcode. Thanks for posting.