0

For example, I created a category UILabel+AALabel.h

And has added it into PCH: #import "UILabel+AALabel.h"

But this obviously causes an error in my category file (UILabel+AALabel.h), because it attempts to import itself: "Cannot find interface declaration for 'UILabel'".

Is there any way to keep using PCH on a project-level, without having such issues? Maybe there are directives which check the file to which its (pch) contents are imported?

Thanks.

0 Answers0