gpt4 book ai didi

ios - MMdrawercontroller:打开左侧菜单时点击centerVC

转载 作者:行者123 更新时间:2023-11-29 11:49:27 26 4
gpt4 key购买 nike

我在我的 objective-c 应用程序中使用 MMdrawercontroller 来显示左侧菜单。我想在打开菜单时启用对 centerVC 显示的小部分的点击。

我该怎么做?

最佳答案

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

self.window = UIWindow(frame: UIScreen.main.bounds)

// Suppose you have three ViewContollers
// Left , Front and Right

let frontView = frontview(nibName: "frontview" , bundle: nil)
let leftView = leftview(nibName: "leftview" , bundle: nil)
let rightView = rightview(nibName: "rightview" , bundle: nil)


let mmDrawerController = MMDrawerController(center: frontView, leftDrawerViewController: leftView, rightDrawerViewController: rightView)

// Here you can use .all , .panningCenterView , .tapCenterView
// as per your requirements..

mmDrawerController?.openDrawerGestureModeMask = .all
mmDrawerController?.closeDrawerGestureModeMask = .all

self.window?.rootViewController = mmDrawerController
self.window?.makeKeyAndVisible()

return true
}

关于ios - MMdrawercontroller:打开左侧菜单时点击centerVC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41828183/

26 4 0