ios手势参数
1 | UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGestureRecognizer:)]; |
- initWithTarget:self 后面方法(handleTapGestureRecognizer)所属的对象
- [self addGestureRecognizer:tapGestureRecognizer];把手势关联到哪个对象上面,目前是self,也可以是self.view.