DurationDatePickerView
@objcMembers
open class DurationDatePickerView : UIView
起止时间弹出框
-
Undocumented
Declaration
Swift
public typealias SureBlock = (_ startDate: String, _ endDate: String) -> Void -
Undocumented
Declaration
Swift
public typealias CancelBlock = () -> Void -
选择日期是否可大于现在,默认true
Declaration
Swift
public var canGreatNow: Bool -
选择日期是否可小于现在,默认true
Declaration
Swift
public var canLessNow: Bool -
确定闭包
Declaration
Swift
public var sureBlock: SureBlock? -
取消闭包
Declaration
Swift
public var cancelBlock: CancelBlock? -
Undocumented
Declaration
Swift
public lazy var titleLabel: UILabel { get set } -
Undocumented
Declaration
Swift
public lazy var startBtn: UIButton { get set } -
Undocumented
Declaration
Swift
public lazy var endBtn: UIButton { get set } -
Undocumented
Declaration
Swift
public lazy var cancelBtn: UIButton { get set } -
Undocumented
Declaration
Swift
public lazy var confirmBtn: UIButton { get set }
-
展示起止时间弹出框
Declaration
Swift
public class func getPopupView(startDate: Date, endDate: Date, dateType: DurationDatePickerViewDateType = .YMD) -> DurationDatePickerViewParameters
startDate开始时间
endDate结束时间
dateType时间类型
-
弹出框显示
Declaration
Swift
public func show(completion: ((Bool) -> Void)? = nil) -
弹出框消失
Declaration
Swift
@objc public func dismiss(completion: ((Bool) -> Void)? = nil)
View on GitHub
DurationDatePickerView Class Reference