Search code examples
iphoneobjective-cuinavigationcontrolleruinavigationbarviewwillappear

Navigationbar not showing on pushing view controller


I have working on navigation base application. my problem is that when i am push other view controller into navigation controller .view controller viewWillAppear is not called.

TestCategoryHistory *testVC = [[TestCategoryHistory alloc] initWithNibName:@"TestCategoryHistory" bundle:nil];

[self.navigationController pushViewController:testVC animated:YES];
[testVC release];`

here test's viewWillAppear is not called.And also navigationbar is not showing..


Solution

  • make sure your current view controller is "in" a Navigation controller. Only so, you can push another view controller to show.