CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | May 2015 |
Maintained by codefalling.
A iOS time input inspire by Android's timer app
Copy or use git module to import
├── UITimeField
│ ├── UITimeField.h
│ └── UITimeField.m
#import "UITimeField.h"
UITimeField *_timeField = [[UITimeField alloc] initWithFrame:CGRectMake(20, 20, 260, 160)];
_timeField.hourUnit=@"h";
_timeField.minuteUnit=@"m";
_timeField.secondUnit=@"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)