Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //实例化长按手势监听
- UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(btnLong:)];
- //代理
- longPress.delegate = self;
- longPress.minimumPressDuration = 0.5;
- [self.label_num addGestureRecognizer:longPress];
Add Comment
Please, Sign In to add comment