Assertion error in -UIPickerTableView
1 answer
Similar problem and solution
Problem : The app had a UIDatePicker as input for 3 or more UITextFields. Setting the date to the first textbox worked fine. The app crashed when I tried
datePicker.setDate(NSDate(), animated: true)
I created different UIDatePickers for each textbox which solved my problem.
The link below has several other solutions for similar scenarios: Assertion Error - [UIPickerTableView _createPreparedCellForGlobalRow: withIndexPath:], / SourceCache / UIKit_Sim / UIKit-2903.2 / UITableView.m: 7768
+1
source to share