A is a subclass of TabbarViewController
A *a = [[A alloc] init];
B *b = [[B alloc] init];
C *C = [[C alloc] init];
NSArray *viewControllers = [NSArray arrayWithObjects:b,c, nil];
[a setViewControllers:viewControllers];
UINavigationController *nv =[[UINavigationController alloc] initWithRootViewController:a];
nv.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentViewController:nv animated:YES completion:nil];
And in A.m: I find the a.navigationController.navigationBar is nil I dont know why?