Latest 1.1.1
Homepage https://github.com/CodeFalling/UITimeField
License MIT
Platforms ios

CocoaPods
GitHub license
[platform]()
Build Status

A iOS time input inspire by Android’s timer app

Preview

preview

Install

Manual

Copy or use git module to import

├── UITimeField
│   ├── UITimeField.h
│   └── UITimeField.m

CocoaPods

platform :ios
pod 'UITimeField','1.1.1'

How to use

#import "UITimeField.h"
UITimeField *_timeField = [[UITimeField alloc] initWithFrame:CGRectMake(20, 20, 260, 160)];
[email protected]"h";
[email protected]"m";
[email protected]"s";
[self.view addSubview:_timeField];

Or add Custom View with UITimeField in your storyboard.

  • You can use _timeField.hour,_timeField.minute,_timeField.second to get time.

  • You can use refresh to let it refresh UI data

  • You can use setInput:(NSString *)timeStr to set input string.(**notice that timeStr.length must <= 6)

Notice that hour bigger than 24 and minute/second bigger than 60 is allowed(Just like android timer’s behaviour)

Latest podspec

{
    "name": "UITimeField",
    "version": "1.1.1",
    "summary": "A iOS time input inspired by Android's timer app",
    "description": "                   A iOS time input inspired by Android's timer appnn                   * This is a view receive input inspired by Clock.apk in AOSPn",
    "homepage": "https://github.com/CodeFalling/UITimeField",
    "screenshots": "http://i1.tietuku.com/0f6503feaf19afeb.gif",
    "license": "MIT",
    "authors": "CodeFalling",
    "social_media_url": "https://twitter.com/CodeFalling/",
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/CodeFalling/UITimeField.git",
        "tag": "1.1.1"
    },
    "source_files": [
        "UITimeField",
        "UITimeField/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This