#pragma mark not showing in methods in Xcode 4.0

前端 未结 13 1885
死守一世寂寞
死守一世寂寞 2021-01-01 13:16

In Xcode Version 4.0 I notice that #pragma marks within methods are no longer showing up in the Jump Bar. The only #pragma marks that are showing up are those that are betwe

13条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 13:26

    To clarify the correct answer by RantriX…

    If your first #pragma mark fails to appear in the jump bar's context menu, add a pair of braces. (Xcode version 4)

    For example, change this:

    @implementation MainMenu
    
    #pragma mark Lifecycle
    

    to this (note the curly braces):

    @implementation MainMenu
    {
    
    }
    
    #pragma mark Lifecycle
    

提交回复
热议问题