#pragma mark not showing in methods in Xcode 4.0

前端 未结 13 1932
死守一世寂寞
死守一世寂寞 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:45

    And apparently, they will not work before your first method. This, for example, will not work:

    #import "Person.h"
    
    @implementation Person
    
    #pragma mark - Convenience
    
    // ===========================================================
    //           Class/Convenience Methods
    // ===========================================================
    
    + (Person *)personWithName:(NSString *)name hourlyRate:(double)rate
    {
        Person *person = [[[Person alloc] initWithName:name rate:rate] autorelease];
        return person;
    }
    

    If I am wrong, let me know, but I don't think I am. If this should work, I hope it gets fixed!!

提交回复
热议问题