我正在尝试实现导航抽屉控制器,我遵循了所有步骤,但控制器无法正常工作。当我从左边缘向右滑动时,左视图未按预期显示。似乎左视图显示为右视图控制器。
Pod 版本:Material (2.4.9)
YouTube 视频:https ://youtu.be/6NSNK3rJwZ8
代码:AppDelegate.swift
func applicationDidFinishLaunching(_ application: UIApplication) {
window = UIWindow(frame: Screen.bounds)
window!.rootViewController = AppNavigationDrawerController(rootViewController: RootViewController(), leftViewController: LeftViewController(), rightViewController: nil)
window!.makeKeyAndVisible()
}
和只是从示例项目中复制和粘贴RootViewController
。LeftViewController