Note that there are some explanatory texts on larger screens.

plurals
  1. POClass is not key value coding-compliant
    text
    copied!<p>I know the meaning of this error, but I'm really struggling with it, and I need someone's help :</p> <pre><code>2010-09-21 15:03:11.562 Stocks[5605:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&lt;NSObject 0x499fb20&gt; setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key actionText.' </code></pre> <p>There is my code here :</p> <h3>AlertCell.h</h3> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import &lt;Foundation/Foundation.h&gt; @interface AlertCell : UITableViewCell { IBOutlet UILabel *actionText; } @property (retain, nonatomic) UILabel *actionText; @end </code></pre> <p>And </p> <h3>AlertCell.m</h3> <pre><code>@implementation AlertCell @synthesize actionText; - (void)dealloc { [actionText release]; [super dealloc]; } @end </code></pre> <p>The problem happens just there :</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; AlertCell *cell = (AlertCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"AlertCell" owner:nil options:nil]; for (id oneObject in nib) { if ([oneObject isKindOfClass:[UITableViewCell class]]) { cell = (AlertCell *)oneObject; break; } } } cell.actionText.text = [arrayAlert objectAtIndex:indexPath.row]; return cell; } </code></pre> <p>On this line :</p> <pre><code>NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"AlertCell" owner:nil options:nil]; </code></pre> <p>As asked, here is my header for the TableViewCOntroller : </p> <pre><code>#import &lt;UIKit/UIKit.h&gt; @interface AlertesViewController : UITableViewController { NSMutableArray *arrayAlert; } </code></pre> <p>And you can see my XIB file (as XML): <a href="http://pastebin.com/FDVzLYZu" rel="noreferrer">http://pastebin.com/FDVzLYZu</a></p> <p>@end</p> <p>Can anyone help me ? Thanks a lot !</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload