*** Assertion failure in -[UIPickerTableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:], /SourceCache/UIKit_Sim/UIKit-3318.93/UITableView.m:9269
Application crashes because of this error. Please someone help.
Similar Problem and Solution
Issue: Application had UIDatePicker as input view for 3 or more UITextFields. Setting Date to first text field worked fine. App crashed when I tried
datePicker.setDate(NSDate(), animated: true)
Solution: I created distinct UIDatePickers for each textfield which solved my issue.
The below reference has few other solutions for similar scenarios: Assertion failure in -[UIPickerTableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-2903.2/UITableView.m:7768
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With