Ferdeen Ferdeen - 6 months ago 44
Objective-C Question

Can you set code regions in Xcode?

When writing c#, in Visual Studio, you can set regions to group code accordingly. Being new to Xcode I can't seem to find a similar feature.


Using Xcode editor, you can collapse or expand any block of code by clicking in the little left margin. Moreover, you can put a mark in any point in the code with:

#pragma mark your title as long as you want

Your mark will then appear in the middle popup menu on top of the editor window.

Update: I have found that a duplicate of this question exists here. The answers may be of interest.