我在iOS 8.4中遇到UIDatePicker
的问题,但同样适用于上面的iOS 10.0。问题仅出在iPhone 5s和iPhone 5等小型设备上。
8.4中的UIDatePicker
10.1中的UIDatePicker
答案 0 :(得分:0)
这不是UIDatePicker的问题。
您需要将UIDatePicker背景颜色设置为白色,以便UIDatepicker背后的内容不可见。
以下是您的示例代码。
datePickerName.backgroundColor = [UIColor whiteColor];