两个手指的UI手势从上到下滑动

时间:2014-12-19 06:18:45

标签: uigesturerecognizer multi-touch cydia tweak

几乎是一个带有单独菜单类的手势,其中Gesture是从屏幕顶部到屏幕最底部的双指翻转/拉动。我需要的只是我的其余调整的代码。谢谢!

1 个答案:

答案 0 :(得分:0)

你的问题不够明确。

但根据我的理解,请尝试使用UIScreenEdgePanGestureRecorgnizer

-(void)viewDidLoad{
[super viewDidLoad];

UIScreenEdgePanGestureRecognizer *gesture = [[UIScreenEdgePanGestureRecognizer alloc]     initWithTarget:self action:@selector(handleGesture:)];

gesture.edges = UIRectEdgeTop; //you can change it to whatever edge you want

[yourView addGestureRecognizer:gesture];

}
-(void)handleGesture:(UIScreenEdgePanGestureRecognizer* )arg {
//handle the gesture here

}