Hey I have a custom TableViewCell that I created and load into a tableview that will load an XML file and display the data. The custom cell itself will display but when I try to set the label text in the custom cell to any of the XML data (using the way that was working with the default cell), code breaks.
Both the custom cell and the subclass for the custom cell are called TableViewCell. I believe that I have everything connected up right in Interface Builder because the cell itself will display with no problem. It's just when I try and pass data to a label.
**TableViewCell.h**
@interface TableCellView : UITableViewCell {
IBOutlet UILabel *dateText;
}
@property (nonatomic, retain) IBOutlet UILabel *dateText;
@end
**RootViewController.m**
- (UITableViewCell *)tableView

UITableView *)tableView cellForRowAtIndexPath

NSIndexPath *)indexPath {
static NSString *MyIdentifier = @"TableCellView";
TableCellView *cell = (TableCellView *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if(cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"TableCellView" owner:self options:nil];
cell = tblCell;
}
// Set up the cell
int storyIndex = [indexPath indexAtPosition: [indexPath length] - 1];
[cell setText:[[stories objectAtIndex: storyIndex] objectForKey: @"Date"]]; //This is the line that gives me trouble
//[cell.dateText setText:[[stories objectAtIndex: storyIndex] objectForKey: @"Date"]]; //If I try and set the text like this it breaks.
return cell;
}
Of course any help is very much appreciated. Thanks!