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
Apparently there are some issues in the pragma parser in Xcode. In my case I could make the #pragma
s re-appear by unificating their syntax to the new one.
Instead of having not uniform and messy chunks of code with some pragmas in it:
// Code ...
#pragma mark -
#pragma mark UITextViewDelegate Protocol
// More code ...
# pragma mark - Important stuff
// Even more code ...
I changed everything to:
// Code ...
#pragma mark - UITextViewDelegate Protocol
// More code ...
# pragma mark - Important stuff
// Even more code ...
Basically, I made sure...
#pragma
line.-
.UPDATE
I've realized that sometimes above rules are not enough if the project is broken somewhere. ( I tried moving some sources to a new project and they showed correctly). So what I did is close my project, delete its derived data from the organizer and also delete these two folders
MyProject.xcodeproj/project.xcworkspace/
MyProject.xcodeproj/xcuserdata/
So next time I open my project Xcode will re-generate them :)
Now ALL my sources are OK again :)