UIScreenEdgePanGestureRecognizer *edgeGes = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget: self action:@selector(edgePan:)];
edgeGes.edges = UIRectEdgeLeft;
[self.view addGestureRecognizer:edgeGes];
-(void)edgePan:(UIPanGestureRecognizer *)recognizer{
[self dismissViewControllerAnimated:YES completion:^{
}];
}
网友评论