0

I am creating a custom cell and always get the error

this class is not key value coding-compliant for the key concert. read that the file owner should not be the object.

How would I change it and what would I change it to? I used this as reference Custom UITableViewCell gives me: this class is not key value coding-compliant

enter image description here

Community
  • 1
  • 1
blee
  • 297
  • 4
  • 13
  • You may have a bad connection in your xib. or Your view controller may have the wrong class in your xib. plz tell me the result – engmahsa Oct 06 '15 at 06:19
  • The file owner's class is connected to the `CustomCellConcerts` – blee Oct 06 '15 at 13:05
  • check wether have two outlet connection or not of one object – engmahsa Oct 06 '15 at 13:08
  • I connected the cell to the custom class, and now I'm getting the error `error: failed to attach to process ID ...` – blee Oct 06 '15 at 13:13
  • you can't connect the cell directly . you just can make outlet connections between objects in cell and your cell class. if you need a custom cell it is another story – engmahsa Oct 06 '15 at 13:18
  • What would I have to do differently for a custom cell. That is what I am trying to accomplish – blee Oct 06 '15 at 22:29

1 Answers1

0

This error is usually received due to a type mismatch with the class defined in the .xib file. Is it possible that your file owner's class is set as UITableViewCell instead of CustomCellConcerts? If so, it can explain why it cannot find the concert outlet and causes the app to crash. Simply change the file owner's class to your custom class and re-attach the outlet.

Rony Rozen
  • 3,957
  • 4
  • 24
  • 46