添加一个滑动手势
2016-07-14 本文已影响61人
西博尔
UIPanGestureRecognizer * pan;// 添加一个滑动手势
pan = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(panGestureRecognized:)];
[self.view addGestureRecognizer:pan];
- (void)panGestureRecognized:(UIPanGestureRecognizer *)sender
{
[self.frostedViewController panGestureRecognized:sender];
}