I have a UIPopoverController which displays a table. I use the PresentFromBarButtonItem method.
How can I give the pop up a title to display, much list the UISpliter does?
UITableViewController
;UITableViewController
to an UINavigationController
.@interface YourTableViewController : UITableViewController < ... >
...
@end
...
...
YourTableViewController *vc = [[YourTableViewController alloc] init... ;
vc.title = @"Some Title";
// add vc to an UINavigationController then forget it.
UINavigationController *nav = [[UINavigationController alloc]
initWithRootViewController:vc];
[vc release];
UIPopoverController *some_pvc = [[UIPopoverController alloc]
initWithContentViewController:nav];
[nav release];
Then show the UIPopoverController some_pvc
by sending presentPopoverFromRect: ...
message to an UIViewController
you will see the title bar
I don't know what you mean by UISpliter, but you need to "wrap" your view controller in a UINavigationController and show the navigation controller in a popover. Your view controller's title property will appear above the view controller's view.
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