Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assertion failure in -UIPickerTableView

*** 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.

like image 489
Laxy Avatar asked Feb 27 '26 03:02

Laxy


1 Answers

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

like image 145
iFx Avatar answered Feb 28 '26 17:02

iFx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!