Q:

navigation bar disappearing

I have a right bar button on the navigation bar of root view controller. Here is the code
- (void)viewWillAppear:(BOOL)animated
{

    [self.navigationItem setTitle:@"Contacts"];

UIBarButtonItem *addbtn = [[UIBarButtonItem alloc]initWithTitle:@"Add Contact"      style:UIBarButtonItemStyleBordered target:self action:@selector(btnClick:)];
    self.navigationItem.rightBarButtonItem = addbtn;

    [tblview reloadData];
}

When i click on that button i do get successfully navigated to the next view but when i return back to the root view controller the navigation bar gets disappeared. Please h elp me out as i am new in iphone app development.

A:

May be you are hiding your navigation bar in nextView
so just remove this line in nextView  
[self.navigationController setNavigationBarHidden:YES];

