Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freesuraj/spanalogclock
a clone of native app clock
https://github.com/freesuraj/spanalogclock
Last synced: 18 days ago
JSON representation
a clone of native app clock
- Host: GitHub
- URL: https://github.com/freesuraj/spanalogclock
- Owner: freesuraj
- License: mit
- Created: 2014-08-16T10:49:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T06:04:39.000Z (over 7 years ago)
- Last Synced: 2024-10-25T16:43:03.275Z (21 days ago)
- Language: Objective-C
- Size: 36.1 KB
- Stars: 94
- Watchers: 12
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Clock-iOS
=========*** A clone of native app clock ***
![SPClockView 1] (https://dl.dropboxusercontent.com/u/4280704/publicPhotos/spclockView.png)
###Features
1. Can set the time zone or choose from a list of time zone
2. Automatically detects the day or night and changes the background of the clock
3. Doesn't use `NSTimer ` to schedule the time, so it won't be blocked by any other UI operations.
4. Swipe to delete the added clock
5. Displays the name of the timezone and time in digital format
6. Digital clock to display the name in format: `HH:mm:ss`### How to use
### CocoaPods
Pod 'SPClockView'
### Manual1. Import the files `SPClockView.h` and `SPClockView.m` into your projects.
2. After adding the `SPClockView` into your parent view, set its `time zone` by calling `setTimeZone:` method.
3. Digital clock `SPDigitalClock` is a subclass of `UILabel`, and is implemented inside the `SPClockView` class. To set the digital time also call the method `setTimeZone:` on `SPDigitalClock`.### Example
1. `SPClockView`SPClockView *clockView = [[SPClockView alloc] initWithFrame:CGRectMake(0, 0, 140, 140)];
[clockView setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"EDT"]]; // New York
2. `SPDigitalClock`
SPDigitalClock *digClock = [[SPDigitalClock alloc] initWithFrame:CGRectMake(0, 0, 140, 140)];
[digClock setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"EDT"]]; // New York### Contact
This is a quickly made project so could have few bugs. Feel free to add bug list or contact me at or !!