How to push UIViewController into UINavigationController from seperate UIView of different UIViewCon

Posted by Kundan on Stack Overflow See other posts from Stack Overflow or by Kundan
Published on 2010-03-24T10:06:32Z Indexed on 2010/03/24 11:13 UTC
Read the original article Hit count: 437

I have a UIViewController(AbcViewController) with NavigationController.AbcViewController uses UIView(AbcView) as its view. AbcView has a UITableView. I have set This TableView's datasource in AbcViewController and delegate in its SuperView i.e. AbcView. How will I push another UIViewController(XyzViewcontroller) into navigationController when I select a row in this table because it gives "error: request for member 'navigationController' in something not a structure or union" when I do this : [self.navigationController pushViewController:xyzViewcontroller animated:TRUE];

I also did this : AbcViewController *parentVC; [parentVC.navigationController pushViewController:xyzViewcontroller animated:TRUE]; Though it builds successfully but XyzViewcontroller's view does not appear. It does not push XyzViewcontroller's view into navigationController.

Thanks For Any Help.

© Stack Overflow or respective owner

Related posts about uiviewcontroller

Related posts about uinavigationcontroller