iOS: SWRevealViewController 打开没有导航栏的 WebView 控件
iOS: SWRevealViewController opening WebView control without Navigation bar
该应用程序有一个导航栏,该导航栏包含在应用程序内的所有场景中。 SWRevealViewController
已用于创建滑出菜单,也出现在所有场景中。它包含一个表格视图,用于启动到其他场景的转场。此菜单中的两个 link 转至加载网页的 webview 控件。 webview 正确加载页面,但没有导航栏为了让事情更混乱,应用程序中还有其他场景 link 正确加载导航栏的 webview。
导航栏未包含在SWRevealViewController
中。这可能是它无法正确加载的原因吗?
提前致谢。
添加 ViewController 时,需要先将其添加到 UINavigationController。
[self.revealViewController pushFrontViewController:[[UINavigationController alloc] initWithRootViewController:VC] animated:YES];
[self.revealViewController setFrontViewPosition:FrontViewPositionLeft animated:YES];
该应用程序有一个导航栏,该导航栏包含在应用程序内的所有场景中。 SWRevealViewController
已用于创建滑出菜单,也出现在所有场景中。它包含一个表格视图,用于启动到其他场景的转场。此菜单中的两个 link 转至加载网页的 webview 控件。 webview 正确加载页面,但没有导航栏为了让事情更混乱,应用程序中还有其他场景 link 正确加载导航栏的 webview。
导航栏未包含在SWRevealViewController
中。这可能是它无法正确加载的原因吗?
提前致谢。
添加 ViewController 时,需要先将其添加到 UINavigationController。
[self.revealViewController pushFrontViewController:[[UINavigationController alloc] initWithRootViewController:VC] animated:YES];
[self.revealViewController setFrontViewPosition:FrontViewPositionLeft animated:YES];