Currently i am working in iPhone app, I have two screen like A and B, A has no navigation bar, but B has navigation bar. so i set like this.
Class A:
Set it in class B
-(void)viewWillAppear:(BOOL)animated { [self.navigationController setNavigationBarHidden:NO]; }