ios - SWRevealViewController 与 TabbarController 设置为 rootViewController

标签 ios swift xcode6 xcode-storyboard swrevealviewcontroller

我将使用 SWRevealViewController 创建侧边栏菜单。在我的 Storyboard中,rootviewcontroller 是一个从导航 Controller 推送的选项卡栏 Controller 。这是我的 Storyboard设计: enter image description here

我需要添加一个 View Controller 作为 SWRevealViewController 来实现侧边栏菜单。我怎样才能做到这一点?我在我的项目中使用 swift。任何帮助将非常感激。谢谢。

最佳答案

我设法通过以下设计解决这个问题: enter image description here

将 SWRevealViewController 设置为 rootviewcontroller。然后将其连接到带有 segue 标识符“sw_front”的导航 Controller 。

关于ios - SWRevealViewController 与 TabbarController 设置为 rootViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34528909/

相关文章:

ios - 如何在 ios 中设置 tableView 单元格标题?

ios - swift 1.2 HealthKit

ios - Firebase GIDSignInButton "firing"/无需用户触摸或交互即可登录

xcode6 - 清理构建文件夹时出错 - 您没有所需的文件权限

快速处理 NSData 初始化失败

cocoa - Swift 绑定(bind) KVO/KVC 问题

ios - 我的应用程序卡住但没有出现错误

ios - 优化 - 步进可能表现得很奇怪 : iOS/Unity

iphone - 以编程方式更改图像的颜色

ios - 实现一个简单的后退按钮 swift ios