iOS避免多个button同时被点击

筛选的时候压力测试,综合/价格/距离筛选,防止两个button 同时被点击:

1.在AppDelegate中添加 [[UIButton appearance] setExclusiveTouch:YES];

2.button.exclusiveTouch = YES;

猜你喜欢

转载自blog.csdn.net/u012498386/article/details/84863381