iOS开发UI之日期控件的使用(UIDatePicker)
iOS日期控件UIDatePicker用法总结 @property (nonatomic) UIDatePickerMode datePickerMode; 设置控件模式,枚举如下: typedef NS_ENUM(NSInteger, UIDatePickerMode) { UIDatePickerModeTime, //时间模式,显示时分和上下午 UIDatePickerModeDate, //日期模式显示年月日 UIDatePickerModeDateAndTime, //时间和日期模式,显示月日星期,时分上下午 UIDatePickerModeCountDownTimer, //计时模式,显示时和分 }; @property (nonatomic, retain) NSLocale *locale; 设置本地化环境 @property (nonatomic, copy) NSCalendar *calendar; 设置日历 @property (nonatomic, retain) NSTimeZone *timeZone; 设置时区 @property (nonatomic, retain) NSDate *date; 设置当前时间 @property (nonatomic, retain) NSDate *minimumDate; 设置最小时间点 @property