简体   繁体   中英

Navigation bar doesn't appear in uiviewtable in popupovercontrol

I have PopupoverControl and this popup has UIViewtablecontrol and one of UITable control should navigate to another UIViewtablecontrol but it doesn't navigate this is the code in selection in first uitableview:

OpenFileViewController *openfileview = [[OpenFileViewController alloc] initWithNibName:@"OpenFileViewController" bundle:nil v_files:[self GetFiles] v_ui:parentview];
        UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:openfileview];
        [self.navigationController presentModalViewController:navController animated:YES];

in .xib file in both uiviewtable I enabled Top Bar with Navigation Bar but it doesn't appear why?

No need for the new navController , try this instead:

[self.navigationController pushViewController:openfileview animated:YES];

Edit :

The root view controller of the popover should be a UINavigationController object, so try this when you're creating the popover:

UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController: optionw];
UIPopoverController *optioandiaglog= [[UIPopoverController alloc] initWithContentViewController:navController];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM