navigationControllerとTabBarControllerを同時使用したいのですが、
以下のようにコントローラを2個定義するとビルドでおこられます。。
Classes/xxxAppDelegate.m:28: error: request for member 'view' in something not a structure or union
どのように実装すればいいのでしょうか。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
// Add the main view controller's view to the window and display.
[self.window addSubview:rootController.view];
[self.window addSubview:navController.view]; ★エラー★
[self.window makeKeyAndVisible];
return YES;
}