单击iOS外部时阻止弹出窗口关闭

时间:2016-09-22 20:18:47

标签: ios swift modalviewcontroller

我正在使用现在的modaly segue“popupSegue” 我这样打开它:

点击即可拨打:

self.performSegueWithIdentifier("popupSegue", sender: self)

我打开这样的模态:

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
    if(segue.identifier == "popupSegue"){
        let smartPopupView = segue.destinationViewController as! SmartManagementPopupViewController
        prepareOverlayVC(smartPopupView)
    }
}

func prepareOverlayVC(overlayVC: UIViewController) {
    overlayVC.transitioningDelegate = overlayTransitioningDelegate
    overlayVC.modalPresentationStyle = .Custom
}

如何在外部点击时禁用解除弹出窗口?

0 个答案:

没有答案