I have made popover displaying UITableViewController, that is used for navigation. What I am interested in to know is - can you use navigational controller inside popover. Lets say you have table where each row transitions to new view. Can this be used in conjuction with popover view, and if so, can you provide some working examples?
Yes, it's very much possible. Firstly create the object of your table class.
TableClass *tblClassObj = [[TableClass alloc] init];
Then create the navigation controller object.
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:tblClassObj];
Then use this navigatin controller for your pop over controller.
UIPopoverController *samplePopOver = [[UIPopoverController alloc] initWithContentViewController:navigationController];
...
Don't forget to release the objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With