RTRootNavigationController icon indicating copy to clipboard operation
RTRootNavigationController copied to clipboard

请问怎么检测一个 controller 被手势 Pop 掉了

Open hasayakey opened this issue 7 years ago • 4 comments

如题

hasayakey avatar Aug 25 '17 09:08 hasayakey

手势返回与点击返回理应同等对待,你是要在手势返回中做什么特别操作吗?

rickytan avatar Aug 26 '17 06:08 rickytan

取消当前页面网络请求,还有与按钮pop相对应的操作等,这个我之前也问过,但是还没有相应的解决方法。。。

jianmu297 avatar Aug 27 '17 02:08 jianmu297

对,就是想同等对待,然后销毁 与 controller 同样生命周期的对象,但是这些对象不归 controller 管

hasayakey avatar Aug 27 '17 15:08 hasayakey

应该可以在 - viewWillDisappear 中检查 self.rt_navigationController.interactivePopGesture.state 是否为 change

rickytan avatar Aug 27 '17 16:08 rickytan