I am quite new on Objective C so please be a bit slow with me.
I have constructed my Views like this: ViewController=>Root(View)=>Controls(View). Root is a Singleton so I can get the root element of my App any time.
When I add #import "Root.h"
to Controls.h
I get a parse issue.
#import <UIKit/UIKit.h>
#import "Root.h" // triggers the error
@interface Controls : UIView
@end
Here my Root.h
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "Controls.h"
#import "Content.h"
@interface Root : UIView
{
Controls *m_controls; // Parse error: Unknown type name "Controls"
}
+(Root*)getInstance;
@end
What causes that? How to fix?