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