FDFullscreenPopGesture关闭侧划返回,保留边缘侧划返回。

直接上代码:

override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        //关闭侧划返回,保留边缘侧划返回。
        self.fd_interactivePopDisabled = true
        self.navigationController?.interactivePopGestureRecognizer?.delegate = self;
        self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true;
    }

你可能感兴趣的:(iOS,ios,swift)