gpt4 book ai didi

iphone - 双击按钮

转载 作者:行者123 更新时间:2023-12-03 19:27:11 27 4
gpt4 key购买 nike

如何添加双击按钮的操作?

最佳答案

- (void) buttonTouchDownRepeat:(id)sender event:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
if(touch.tapCount == 2) {
NSLog(@"Twice");
}
else {
NSLog(@"otherwise");
}
}

关于iphone - 双击按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5608006/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com