user10102637
user10102637

Reputation:

xcode to crash due to reading when updating UI textField

i am trying to update the collection view when text is entered in text field in UI. i have sort of created an extension but when i call this function and call if after update to the UiTextField, Xcode crash with an error: Terminating app due to uncaught exception 'NSInternalInconsistencyException'

Upvotes: 1

Views: 24

Answers (1)

Ash
Ash

Reputation: 138

I think you are not calling calling insertItems(at:)on your collection view. Seems to be collection view issue when running in Xcode - Recommend the following:

  • To use delegation to pass events back to the view controller VC rather than having the header view and cells holding a reference to the VC.
  • Avoid using term currentTagsArray may be.

Upvotes: 1

Related Questions