Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terminatorover/rgtimercontrol
https://github.com/terminatorover/rgtimercontrol
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/terminatorover/rgtimercontrol
- Owner: terminatorover
- Created: 2015-02-24T05:19:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-25T04:35:38.000Z (almost 10 years ago)
- Last Synced: 2023-08-03T15:20:57.247Z (over 1 year ago)
- Language: Objective-C
- Size: 316 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RGTimerControl
![g](https://github.com/terminatorover/RGTimerControl/blob/master/pic.png)This custom control is a count down timer.Note, "Reset Timer" piece is not part of the
control and only shown for demo purpose. The design was taken from
[ Aleksandar Djuric's work on as seen on Pinterest](https://www.pinterest.com/pin/554294666613031165/)You can either instantiate it in code via initWithFrame: or drop it in as a class in a nib or storyboard.
Then the user can interact with the control. By by panning to select the amount of time they want to
allocate for the count down and by tapping on the start and stop "buttons".To be notified of the users interaction the implement RGTimerViewDelegateProtcol and implement the
- (void)pauseValue:(BOOL)value; method. when value is YES it means that the user has already hit START
and is now able to tap PAUSE to pause the timer. Conversly when the value is NO it means that the user
has hit pause.- you can reset the timer via the resetTimer method, and pause the timer programtically by setting the
pauseNow property.##Customizing
There are two properties for customization. increment, and totalTimeInSecincrement is the value of how much secs are added each time the timer fires.
note if this is not programtically specified the default value used is 1 sec.
totalTimeInSec is the total number of seconds from which the timer starts to count down
note if this is not programtically specified the default value used is 3600 secs.