杨锴
2024-08-28 4d776ec3b272c40c5d9058af875211811835793f
XQMuse/Base/BaseVC.swift
@@ -68,6 +68,21 @@
                        return .default
            }
            // 是否支持自动转屏
            override var shouldAutorotate: Bool {
                        return false
            }
            // 支持哪些屏幕方向
            override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
                        return .portrait
            }
            // 默认的屏幕方向(当前ViewController必须是通过模态出来的UIViewController(模态带导航的无效)方式展现出来的,才会调用这个方法)
            override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
                        return .portrait
            }
            @objc fileprivate func backItemEvent() {
                        // 拦截pop事件
                        if (yy_popBlock != nil) {