I\'m new to iOS development and am running into an issue with my header files. I\'m running into a circular dependency issue with my header files. My application delegate clas
Don't #import "MyViewController.h" in appDelegate.h. Instead, forward-declare the class.
@class MyViewController;
@interface appDelegate
NSManagedObjectContext *managedObjectContext;
MyViewController *viewController;
BOOL myFlag;
@end
Also, you don't need to #import "appDelegate.h" in MyViewController.h if all you need is to reference the myFlag property in the implementation. Instead, import it in the MyViewController.m file.