一霎冯、指定的控制器返回
class LLBaseNavigationController: UINavigationController,UIGestureRecognizerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
self.interactivePopGestureRecognizer?.delegate = self
}
//Slip right to pop.
func gestureRecognizerShouldBegin(gestureRecognizer: UIGestureRecognizer) -> Bool
{
/*制定需要右滑手勢(shì)返回的ViewController*/
if (self.topViewController is OtherEquipmentsSetControl)||(self.topViewController is EquipmentsSetControl)
{
return true
}
else
{
return false
}
}
}
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者