我需要的是拦截和阻止从向下滑动手势呼叫控制中心,而用户正在使用应用程序(他不在跳板中),以新的操作替换它们。当用户在跳板中时,一切都必须是默认的,所以他必须能够打开控制中心。
在我的条件下(用户不在跳板中),我必须挂接什么方法才能截获控制中心的呼叫?谢谢
发布于 2014-01-03 10:06:10
从浏览iOS 6头文件可以看出,SBPanGestureRecognizer继承自SBGestureRecognizer. SBGestureRecognizer具有以下方法:
- (void)touchesEnded:(struct __SBGestureContext *)arg1;
- (void)touchesMoved:(struct __SBGestureContext *)arg1;
- (void)touchesBegan:(struct __SBGestureContext *)arg1;我会去勾搭其中的一个。
https://stackoverflow.com/questions/20894465
复制相似问题