美文网首页
添加一个滑动手势

添加一个滑动手势

作者: 西博尔 | 来源:发表于2016-07-14 14:44 被阅读61次

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

相关文章

网友评论

      本文标题:添加一个滑动手势

      本文链接:https://www.haomeiwen.com/subject/okksjttx.html