Если вы посмотрите на DetailView.xib для проекта UISplitView в Интерфейсном Разработчике, вы можете перетащить UIBarButtonItems на панель инструментов, содержащуюся в нем.
Чтобы получить панель инструментов в контроллере всплывающих окон, вы можете просто использовать toobar, которыйпоставляется с UINavigationController.Код ниже должен дать вам представление о том, как это сделать.Добавьте этот код в RootViewController.
- (void)viewDidLoad
{
[super viewDidLoad];
self.clearsSelectionOnViewWillAppear = NO;
self.contentSizeForViewInPopover = CGSizeMake(320.0, 600.0);
//setup toolbar
self.navigationController.toolbarHidden = NO;
UIBarButtonItem *refreshItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refresh:)];
[self setToolbarItems:[NSArray arrayWithObjects:refreshItem, nil]];
[refreshItem release];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(60.0, 10.0, 200.0, 21.0)];
label.backgroundColor = [UIColor clearColor];
label.textColor = [UIColor whiteColor];
label.text = @"This is a label on the toolbar";
[self.navigationController.toolbar addSubview:label];
[label release];
}