I am attempting to present a UIPopoverController similar to the bookmark selector in Safari with the title above and the ability to go back and forward. I found this tutorial: http://mobiforge.com/designing/story/using-popoverview-ipad-app-development and have followed it, yet my navigation bar is not appearing like it should be. Instead, it is appearing like it is recessed in the popover controller and not actually part of the popover controller. Below is the code I have so far. Any help would be greatly appreciated.
Code:
- (IBAction)addAPrePlan:(id)sender
{
if (![self.preplanPopoverController isPopoverVisible]) {
// Initiate the popover controller
UITableViewController *pp = [[UITableViewController alloc] init];
pp.navigationItem.title = @"Add a PrePlan";
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:pp];
UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:nav];
popover.delegate = self;
self.preplanPopoverController = popover;
}
else {
// Dissmiss the popover
[self.preplanPopoverController dismissPopoverAnimated:YES];
}
// Present the popover controller
[self.preplanPopoverController presentPopoverFromBarButtonItem:self.addAPrePlanButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}