appdelegate で以下のように rootController にナビゲーション バーを追加します
@property (strong, nonatomic) UINavigationController *navController;
@synthesize navController;
birthDateTableViewController =[[BirthDateTableViewController alloc]initWithNibName:@"BirthDateTableViewController" bundle:nil];
navController = [[[UINavigationController alloc]initWithRootViewController:birthDateTableViewController]autorelease];
[window addSubview:navController.view];
[window makeKeyAndVisible];
return YES;
独自のナビゲーションバーがあるため、他のビューで非表示にしたいので、次のコードを使用して rootViewControllers ナビゲーションバーを非表示にしますが、非表示ではありません。間違っていることを教えてください。
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
[appDelegate.navController setNavigationBarHidden: YES animated:NO];
アプリケーションがラインの上に到達するとクラッシュする [self.navigationController setNavigationBarHidden: YES animation:NO];