除去一些常用方法,以下也能实现
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(todoSomething) object:nil];
[self performSelector:@selector(todoSomething) withObject:nil afterDelay:0.3f];
除去一些常用方法,以下也能实现
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(todoSomething) object:nil];
[self performSelector:@selector(todoSomething) withObject:nil afterDelay:0.3f];
本文标题:多次点击只让最后一次操作生效
本文链接:https://www.haomeiwen.com/subject/jispoftx.html
网友评论