I am working with a navigation application. I have a homeViewController with two views(accept, service). When I click on a button in serviceView it should go to acceptView. I should have back button in navigation bar which takes me be back to serviceView from acceptView. When I am trying to use [self navigationController pushViewController, it only accepts viewcontroller but not view. Can any one please tell the alternative. Please help me.
Thanks in advance
You should have a different
viewControllerfor each view if you wish to use anavigationControllerproperly.Set up
AcceptViewControllerandServiceViewControllerseparately. Then, from theAcceptViewController, you can create aServiceViewControllerand push it onto the stack as follows: