When I compile with the following code there are no errors:
@class RootViewController;
//#import \"RootViewController.h\"
When I compile wi
@class means that the definition of the class RootViewController is not yet declared, but will be defined at run time. I believe it is like declaring an extern class in c++.
#import is equivalent to #include.
by the error message i could guess you just made a mistake somewhere inside RootViewController.h, such as a forgotten ; or something like that