这是我的代码..
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"LibraryListingCell";
DVDListingViewCell *cell = (DVDListingViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"DVDListingView" owner:self options:nil];
cell = [_cell autorelease];
_cell = nil;
}
cell.titleLabel.text = [[dao libraryItemAtIndex:indexPath.row] valueForKey:@"title"];
cell.featureLengthLabel.text = [NSString stringWithFormat:@"%@ minutes",
[[dao libraryItemAtIndex:indexPath.row] valueForKey:@"featureLength"]];
cell.coverImageView.image = [UIImage
imageNamed:[[dao libraryItemAtIndex:indexPath.row] valueForKey:@"coverImage"]];
return cell;
}
如何解决 Thread1 : Signal SIGABRT 问题与这一行 [[NSBundle mainBundle] loadNibNamed:@"DVDListingView" owner:self options:nil];