In my iPad app, I have a UITabBarController at the bottom with a bunch of view controllers associated with a bunch of tabs. I would like to have a tab that shows a popup when touched. I know how to use the UIPopoverController, but I donβt know how to add a tab to the UITabBarController without giving the controller the tab bar UIViewController.
Any suggestions on how to do this?
Thanks.
Here is the code that should popup. ( Source )
CGFloat tabBarHeight = self.tabBarController.tabBar.bounds.size.height; CGRect rect = CGRectMake(0, 0, tabBarHeight, tabBarHeight); [popoverController presentPopoverFromRect:rect inView:self.tabBarController.tabBar permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
David source share