ios 向后滑动- InteractivePopGestureRecognizer不工作

dddzy1tm  于 2023-05-30  发布在  iOS
关注(0)|答案(3)|浏览(181)

我有像这张照片一样的屏幕。HomeViewController将推送到maintabbar,而tabbar项将推送到detailScreen。为什么回刷不工作。我认为这是IOS默认的。请帮帮我
p/s:如果我在cocoapods中使用SwipeBack,它工作。但是我不想用它

v1l68za4

v1l68za41#

尝试将交互式弹出手势识别器委托设置为nil:

self.navigationController.interactivePopGestureRecognizer.delegate = nil;
9bfwbjaz

9bfwbjaz2#

我们遇到了同样的问题,我会在此之后解决

self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true
self.navigationController?.interactivePopGestureRecognizer?.delegate = self
goucqfw6

goucqfw63#

我有类似的问题&得到了固定使用方法从这个答案
很简单,你打过电话吗

[super viewWillAppear:animated];

覆盖时

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

相关问题