0

我需要的是在用户使用应用程序(他不在跳板中)时拦截并阻止从向下手势滑动以调用控制中心以用新操作替换它们。当用户在跳板中时,一切都必须是默认设置,因此他必须能够打开控制中心。

在我的情况下(用户不在跳板中),我必须使用什么方法来拦截控制中心的呼叫?谢谢

4

1 回答 1

0

从浏览 iOS 6 标题,似乎SBPanGestureRecognizer继承自SBGestureRecognizer。SBGestureRecognizer 有这些方法:

- (void)touchesEnded:(struct __SBGestureContext *)arg1;
- (void)touchesMoved:(struct __SBGestureContext *)arg1;
- (void)touchesBegan:(struct __SBGestureContext *)arg1;

我会考虑挂钩其中一个。

于 2014-01-03T02:06:09.887 回答