title: Receiver 'ViewController' for class message is a forward declaration error in appdelegate class
body: <p>I used s<code>hareddelegate</code> method,while running the app I got the  Unknown type name <code>'ViewController'</code>; did you mean <code>'UIViewController'</code>? then I use the <code>@class ViewController</code> but now I got the above error how can I solve.</p>
  
  <p>In the below <code>@property(nonatomic,strong) nstring *title1;</code> I used in tableview to share data to detailview.</p>
  
  <p>Please help me.</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  //#import "ViewController.h"
  
  @class ViewController;
  #define UIAPPDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])
  @interface AppDelegate : UIResponder &lt;UIApplicationDelegate&gt;
  {
  
  }
  
  @property(strong,nonatomic) NSString *title1;
  @property (strong, nonatomic) UIWindow *window;
  @property (nonatomic) BOOL isFirstTime;
  @property (strong, nonatomic) ViewController *viewController;
  //@property(strong,nonatomic) ViewController *viewController;
  @property (strong, nonatomic) UINavigationController *navigationController;
  
  @end
  
  //did finish with lanching page.
   - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
      isFirstTime = YES;
  
      sleep(3);
  
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      // Override point for customization after application launch.
  
      title1=[[NSString alloc]init];
      self.viewController= [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
      self.navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
      [self.navigationController.navigationBar setBarStyle:UIBarStyleBlackTranslucent];
      self.window.rootViewController = self.navigationController;
      [self.window makeKeyAndVisible];
      return YES;
  }
  </code></pre>