[英]Navigation bar doesn't appear in uiviewtable in popupovercontrol
我有PopupoverControl,这个弹出窗口有UIViewtablecontrol,并且UITable控件中的一个应该导航到另一个UIViewtableControl,但它不导航,这是第一个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];
在两个uiviewtable中的.xib文件中,我都启用了带有导航栏的顶部栏,但是为什么没有出现?
不需要新的navController
,请尝试以下方法:
[self.navigationController pushViewController:openfileview animated:YES];
编辑 :
弹出框的根视图控制器应为UINavigationController
对象,因此在创建弹出框时请尝试以下操作:
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController: optionw];
UIPopoverController *optioandiaglog= [[UIPopoverController alloc] initWithContentViewController:navController];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.