iOS jailbroken device: intercept and block the swipe from down gesture to call the Control Center

221 views Asked by At

What I need is to intercept and block the swipe from down gesture to call the Control Center while the user is using an app (he isn't in the springboard) to replace them with a new action. When the user is in the springboard everything it must be as default so he must be able to open the control center.

What's method I must hook to intercept the control center call under my condition (the user is not in the springboard)? Thanks

1

There are 1 answers

1
Connor Pearson On

From browsing iOS 6 headers, it seems SBPanGestureRecognizer inherits from SBGestureRecognizer. SBGestureRecognizer has these methods:

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

I'd look into hooking one of those.