Hello,
i create a uiTabBarController manually using the code,it has a UITableViewController.
This one calls a RSS feed,by selecting a cell i should have a UIWebView showing the details for each row selected.
I had the same probleme,but unfortunatly i could not solve it 😟
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UITableViewCell 0x3910ce0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label1.
when i checked my code using breakpoint ,i found that the error is may be coming from :
cell = (TableViewCell *) c.view;
and this is the method :
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"CellIndent";
TableViewCell *cell = (TableViewCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
UIViewController *c = [[UIViewController alloc] initWithNibName:@"TableViewCell" bundle:nil];
cell = (TableViewCell *) c.view;
[c release];
}
// Set up the cell...
int storyIndex = [indexPath indexAtPosition:[indexPath length]-1];
cell.label1.text =[[stories objectAtIndex:storyIndex] objectForKey:@"title"];
return cell;
}