iOS版本8.4中的iOS UIDatePicker设计

时间:2017-05-29 07:54:09

标签: ios autolayout uidatepicker

我在iOS 8.4中遇到UIDatePicker的问题,但同样适用于上面的iOS 10.0。问题仅出在iPhone 5s和iPhone 5等小型设备上。

8.4中的UIDatePicker

10.1中的UIDatePicker

1 个答案:

答案 0 :(得分:0)

这不是UIDatePicker的问题。

您需要将UIDatePicker背景颜色设置为白色,以便UIDatepicker背后的内容不可见。

以下是您的示例代码。

datePickerName.backgroundColor = [UIColor whiteColor];