LVDebounce 0.0.4

LVDebounce 0.0.4

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2014年12月

Matt Thomas 维护。



  • Kelly Sutton

NSTimers 防抖的 Objective-C 库

安装

将此放在您的 Podfile 中并使用它

pod 'LVDebounce'

用法

这是一个非常简单的 API,旨在尽可能地反映 NSTimer API。

以下是一个示例

#import "LVDebounce.h"

- (void)helloWorld {
    NSLog(@"Hello, World!"); // Will only run once
}

- (void)applicationDidFinishLaunching {
  for (int i = 0; i < 10; i++) {
      [LVDebounce fireAfter:1.0 target:self selector:@selector(helloWorld) userInfo:nil];
  }
}

就是这样。