日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Cocoa touch(十):UIDatePicker

發布時間:2025/6/17 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Cocoa touch(十):UIDatePicker 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

UIDatePicker,日期選取器

typedef NS_ENUM(NSInteger, UIDatePickerMode) {UIDatePickerModeTime, // Displays hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. 6 | 53 | PM)UIDatePickerModeDate, // Displays month, day, and year depending on the locale setting (e.g. November | 15 | 2007)UIDatePickerModeDateAndTime, // Displays date, hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. Wed Nov 15 | 6 | 53 | PM)UIDatePickerModeCountDownTimer // Displays hour and minute (e.g. 1 | 53) };@interface UIDatePicker : UIControl <NSCoding>@property(nonatomic) UIDatePickerMode datePickerMode; // default is UIDatePickerModeDateAndTime @property(nonatomic,retain) NSLocale *locale; // default is [NSLocale currentLocale]. setting nil returns to default @property(nonatomic,copy) NSCalendar *calendar; // default is [NSCalendar currentCalendar]. setting nil returns to default @property(nonatomic,retain) NSTimeZone *timeZone; // default is nil. use current time zone or time zone from calendar @property(nonatomic,retain) NSDate *date; // default is current date when picker created. Ignored in countdown timer mode. for that mode, picker starts at 0:00 @property(nonatomic,retain) NSDate *minimumDate; // specify min/max date range. default is nil. When min > max, the values are ignored. Ignored in countdown timer mode @property(nonatomic,retain) NSDate *maximumDate; // default is nil @property(nonatomic) NSTimeInterval countDownDuration; // for UIDatePickerModeCountDownTimer, ignored otherwise. default is 0.0. limit is 23:59 (86,399 seconds) @property(nonatomic) NSInteger minuteInterval; // display minutes wheel with interval. interval must be evenly divided into 60. default is 1. min is 1, max is 30- (void)setDate:(NSDate *)date animated:(BOOL)animated; // if animated is YES, animate the wheels of time to display the new date@end

?

轉載于:https://www.cnblogs.com/iprogrammer/p/3252698.html

總結

以上是生活随笔為你收集整理的Cocoa touch(十):UIDatePicker的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。