Sunday 15 June 2014

ios - UICollectionView app crashes with UICollectionViewCell not key value compliant -


I started making a project with UICollectionView. I pulled a UICollectView controller on the storyboard and recognized it properly in the inspector. Then I pulled it into UITableViewCell and a UILabel. I created MySell with a UILBell property and connected it to the outlet.

But when I app runs do it crashed like this:

[setValue: forUndefinedKey:]: This class key value coding key Sellbl < p> for qualified

While Uaielabl property Sellabel Maklel here's my Selfor Aitimaitiakspath:

  - (UICollectionViewCell *) Collection see: (UICollectionView *) collectionView cellForItemAtIndexPath: (NSIndexPath *) Index path {MyCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier: @ "cell" forInexPath: indexPath]; NSManagedObject * Object = [self.fetchedResultsController objectAtIndexPath: indexPath]; Cell.cellLabel.text = [[Object Value ForKey: @ "Timestamp"] Description]; Return cell; }   

and the cell trait is the identifier in the inspector.

What could be wrong?

If you have custom cell to the custom cell MyClass If you set up, check in the interface-builder.

No comments:

Post a Comment