GCDTimer
is implementation of NSTimer-like class with API close to original, but done on top of Apple's GCD (Grand Central Dispatch).
You use GCDTimer almost the same as you use NSTimer:
GCDTimer *timer;
...
timer = [GCDTimer scheduledTimerWithTimeInterval:1.0 repeats:YES block:^{
// Your repeated action here.
}];
See demo for more details (you may quickly see demo by using conventient pod try
command, i.e. pod try GCDTimer
)
GCDTimer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GCDTimer"
Ivan Zezyulya, GCDTimer@zoid.cc
GCDTimer is available under the MIT license. See the LICENSE file for more info.