0
Я вижу, что UINavigationItem * navigationItem является единственным свойством UINavigationViewController.Как добавить правую навигационную кнопку в navigationViewController с корневым представлениемController
TestViewController *test = [[TestViewController alloc]init];
UINavigationController *navigationController = [[UINavigationController alloc]initWithRootViewController:tableController];
UIBarButtonItem *item = [[UIBarButtonItem alloc]initWithTitle:@"Me" style:UIBarButtonItemStyleDone target:self action:@selector(done:)];
[navigationController.navigationItem setRightBarButtonItem:item]; // NOT WORK
UIPopoverController *pop = [[UIPopoverController alloc]initWithContentViewController:navigationController];
pop.popoverContentSize = CGSizeMake(500, 300);
CGRect rect = CGRectMake(300, 400, 50, 50);
[pop presentPopoverFromRect:rect inView:senderButton.superview permittedArrowDirections:0 animated:YES];
Вы должны прочитать информацию в верхней части ссылки на класс UINavigationItem. Он рассказывает вам, как работают навигационные элементы. – rdelmar