- A simple and highly customizable oc date picker
- 简单易用、可高度自定义的日期选择控件
None.
- Just drag
VisionControl
folder into your project - 将
VisionControl
文件夹拖入你的項目
#import "VisionDatePicker.h"
/* 注意:Picker必須聲明為全局變量或屬性,否則會自動回收
*/
@property (strong,nonatomic) VisionDatePicker *picker;
//demo textField
UITextField *txt = [[UITextField alloc] initWithFrame:(CGRectMake(50, 100, 270, 40))];
txt.borderStyle = UITextBorderStyleRoundedRect;
[self.view addSubview:txt];
self.picker = [[VisionDatePicker alloc] initWithTextField:txt
format:@"yyyy-MM-dd hh:mm:ss"
dateDefault:[NSDate date]
dateMode:(UIDatePickerModeDateAndTime)
locale:[NSLocale currentLocale]];
None.
iOS 6 or later. Requires ARC ,support iPhone/iPad
iOS 6及以上系统可使用. 本控件纯ARC,支持iPhone/iPad横竖屏
Please create a issue if you have any questions. Welcome to visit my Blog
All source code is licensed under the MIT License.