Presently we are working with iOS11, facing issue with UIDatePicker in iOS 10 everything is working fine.
Below is my code this code working in Simulator in iOS 11, coming to device its getting crashing With NSRangeException like
[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 1]
let arabicDatePicker = UIDatePicker()
let islamicCalendar = Calendar.init(identifier: Calendar.Identifier.islamic)
arabicDatePicker.calendar = islamicCalendar
arabicDatePicker.datePickerMode = UIDatePickerMode.date
arabicDatePicker.maximumDate = Date()
Please do needful ASAP.
Below is my code this code working in Simulator in iOS 11, coming to device its getting crashing With NSRangeException like
[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 1]
let arabicDatePicker = UIDatePicker()
let islamicCalendar = Calendar.init(identifier: Calendar.Identifier.islamic)
arabicDatePicker.calendar = islamicCalendar
arabicDatePicker.datePickerMode = UIDatePickerMode.date
arabicDatePicker.maximumDate = Date()
Please do needful ASAP.