Latest 0.0.1
Homepage https://github.com/freesuraj/Clock-iOS
License MIT
Platforms ios 6.0, requires ARC
Frameworks CoreGraphics, UIKit, Foundation
Authors

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'

Manual

  1. 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 [email protected] or http://www.twitter.com/freesuraj !!

Latest podspec

{
    "name": "SPClockView",
    "version": "0.0.1",
    "summary": " A clone of native app clock",
    "description": "                   ###Featuresn1. Can set the time zone or choose from a list of time zonen2. Automatically detects the day or night and changes the background of the clockn3. Doesn't use `NSTimert` to schedule the time, so it won't be blocked by any other UI operations.n4. Swipe to delete the added clockn5. Displays the name of the timezone and time in digital formatn6. Digital clock to display the name in format: `HH:mm:ss`n",
    "homepage": "https://github.com/freesuraj/Clock-iOS",
    "screenshots": "https://dl.dropboxusercontent.com/u/4280704/publicPhotos/spclockView.png",
    "license": "MIT",
    "authors": {
        "Suraj Pathak": "[email protected]"
    },
    "social_media_url": "http://twitter.com/freesuraj",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "[email protected]:freesuraj/Clock-iOS.git",
        "commit": "92747e9c5acdfe5a684791ba4c458f32007a0629"
    },
    "source_files": "Clock/Clock/Clock-Source/**/*.{h,m}",
    "frameworks": [
        "CoreGraphics",
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This