Question

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..

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top