如何检测我的interactivePopGestureRecognizer是否已完成并将返回(弹出)到上一个视图控制器或者移位是不够的。然后当前视图控制器将返回其正常位置。
我的代码:
if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
[self.interactivePopGestureRecognizer addTarget:self action:@selector(defaultGestureAction:)];
}
- (void)defaultGestureAction:(UIGestureRecognizer *)sender {
if (sender.state == UIGestureRecognizerStateBegan || sender.state == UIGestureRecognizerStateChanged) {
} else {
//this code is fired when I touch up
//is there any way to check this action (pop or stay)?
}
}