Post

Replies

Boosts

Views

Activity

Reply to iOS15 UIDatePicker shows strange year
let datePicker = UIDatePicker() datePicker.locale = .current datePicker.datePickerMode = .date datePicker.preferredDatePickerStyle = .wheels datePicker.locale = Locale(identifier: "zh") datePicker.calendar = Calendar(identifier: .chinese) The same code I got different result in iOS15 and iOS 14.2. The year become"38" but not "2021" in iOS 15
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to iOS15 UIDatePicker shows strange year
let datePicker = UIDatePicker() datePicker.locale = .current datePicker.datePickerMode = .date datePicker.preferredDatePickerStyle = .wheels datePicker.locale = Locale(identifier: "zh") datePicker.calendar = Calendar(identifier: .chinese) The same code I got different result in iOS15 and iOS 14.2. The year become"38" but not "2021" in iOS 15
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21