//按钮长按
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)];
//长按时间
longPress.minimumPressDuration = 0.8;
[titleButton addGestureRecognizer:longPress];
IOS.UIButton长按事件
最新推荐文章于 2023-01-03 13:19:48 发布