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...
- there is one blank line before and after the
#pragma
line.
- there is only one space before and another after the
-
.
- the pragma line does not end with an space.
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 :)