Can you set code regions in Xcode?

前端 未结 6 1346
忘掉有多难
忘掉有多难 2020-12-31 01:03

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.

6条回答
  •  执念已碎
    2020-12-31 01:17

    Sorry for being pedantic but it's "Xcode", not "X-Code".

    You can for example go:

    #pragma mark -
    

    or

    #pragma mark Initialization
    

    This will give you this kind of thing:

提交回复
热议问题