Assertion error in -UIPickerTableView

*** Assertion error in - [UIPickerTableView _createPreparedCellForGlobalRow: withIndexPath: willDisplay:], / SourceCache / UIKit_Sim / UIKit-3318.93 / UITableView.m: 9269

The application crashed due to this error. Please, help.

+3


source to share


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







All Articles