UIPanGestureRecognizer * pan;// 添加一个滑动手势
pan = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(panGestureRecognized:)];
[self.view addGestureRecognizer:pan];
- (void)panGestureRecognized:(UIPanGestureRecognizer *)sender
{
[self.frostedViewController panGestureRecognized:sender];
}
网友评论