Commit bec5e987 authored by jzhang's avatar jzhang

适配UIDatePicker

parent 34f02226
...@@ -33,6 +33,11 @@ ...@@ -33,6 +33,11 @@
if (self) { if (self) {
self.backgroundColor = [UIColor whiteColor]; self.backgroundColor = [UIColor whiteColor];
self.autoresizingMask = UIViewAutoresizingFlexibleWidth; self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
if (@available(iOS 13.4, *)) {
self.preferredDatePickerStyle = UIDatePickerStyleWheels;
} else {
}
[self initBgView]; [self initBgView];
} }
return self; return self;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment