Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 向后轻扫-InteractivePopgestureRecognitor不工作_Ios_Objective C_Swift_Swipe Gesture - Fatal编程技术网

Ios 向后轻扫-InteractivePopgestureRecognitor不工作

Ios 向后轻扫-InteractivePopgestureRecognitor不工作,ios,objective-c,swift,swipe-gesture,Ios,Objective C,Swift,Swipe Gesture,我有像这张照片一样的屏幕。HomeViewController将推送到Main选项卡栏,选项卡栏项目将推送到detailScreen。 为什么刷回不工作。我认为这是IOS的默认设置。请帮帮我 p/s:如果我在Cocoapod中使用SwipeBack,它会工作。但我不想使用它尝试将交互式pop手势识别器委托设置为零: self.navigationController.interactivePopGestureRecognizer.delegate = nil; 我也有类似的问题&使用来自 简单

我有像这张照片一样的屏幕。HomeViewController将推送到Main选项卡栏,选项卡栏项目将推送到detailScreen。 为什么刷回不工作。我认为这是IOS的默认设置。请帮帮我


p/s:如果我在Cocoapod中使用SwipeBack,它会工作。但我不想使用它

尝试将交互式pop手势识别器委托设置为零:

self.navigationController.interactivePopGestureRecognizer.delegate = nil;

我也有类似的问题&使用来自

简单地说,你打电话了吗

[super viewWillAppear:animated];
当覆盖

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    // your other codes goes on
}

哇,这真管用!有人能解释一下为什么需要这样做才能让手势再次工作吗?@gokeji我希望我能确定。它在iPhone 7 Plus上不起作用,请告诉我,如果你能帮我的话。有时将代理设置为零会导致应用程序UI在某些情况下冻结。有时,它会导致导航栏出现故障,使其消失