2
내 응용 프로그램이 시작시 실패합니다. 다음 코드에 문제가 있습니다.NSInvalidUnarchiveOperationException : 클래스의 객체를 디코딩 할 수 없습니다 (UITableViewCellContentView).
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIdentifier = @"MyIdentifier";
MyIdentifier = @"tblCellView";
TableCellView *cell = (TableCellView *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if(cell == nil) {
cell = [[[TableCellView alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
NSLog(@"this is working----");
[[NSBundle mainBundle] loadNibNamed:@"TableCellView" owner:self options:nil];
NSLog(@"this is not working----");
cell = tblCell;
}
return cell;
}
그러나 내가 뭘 잘못하고 있니?
오류 :
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (UITableViewCellContentView)'
귀하의 도움에 감사드립니다!
'TableCellView.nib'을 다시 저장 하시겠습니까? – kennytm
같은 오류가 발생했습니다. : - / – phx