📜  向左滑动返回 iphone swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.129000             🧑  作者: Mango

代码示例1
self.navigationController.interactivePopGestureRecognizer.delegate = self;
//and then implement
extension MyViewController:UIGestureRecognizerDelegate {
    func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
        return true
    }
}