KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
YXTimer
★ 8
Open GitHub ↗
基于GCD实现的定时器,提供了暂停和恢复的功能,支持block和@selector
Download README (.md)
Explore Similar Repositories
TvSoftKeyboard
:
Android TV Global SoftKeyboard
omnixlf
:
Simple XLF translation editor powered by electron.
dumb-diff
:
an Emacs package for fast arbitrary word diffs
VDHL-SD-Library
:
A VHDL-Library for reading a SD-Card with a FPGA in a small test project
SpaceCombatSimulation
:
A Unity 3D project to simulate combat between space ships with vaguely realistic physics - Space ships are not aeroplanes!
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
YXTimer
?
Download (.md)
YXTimer ============== [](https://github.com/xinghanjie/YXTimer/blob/master/LICENSE) [](https://github.com/xinghanjie/YXTimer) [](https://www.apple.com/nl/ios/) A timer based on GCD implementation provides pause and recovery functions. Features ============== - **Timer**: Based on GCD. - **Pause&Resume**: Provide pause and resume methods. - **Block**: Support block callback. Usage ========================== ```objc self.timer = [YXTimer timerWithTimeInterval:1.0 target:self selector:@selector(timer:)]; [self.timer pause]; [self.timer resume]; self.timer1 = [YXTimer timerWithTimeInterval:1.0 block:^{ NSLog(@"block"); }]; [self.timer1 pause]; [self.timer1 resume]; [self.timer1 invalidate]; ``` Installation ============== ### CocoaPods 1. Add `pod 'YXTimer'` to your Podfile. 2. Run `pod install` or `pod update`. 3. import <YXTimer/YXTimer.h>.