NSInvalidUnarchiveOperationException:无法解码类的对象(UITableViewCellContentView) [英] NSInvalidUnarchiveOperationException: cannot decode object of class (UITableViewCellContentView)
本文介绍了NSInvalidUnarchiveOperationException:无法解码类的对象(UITableViewCellContentView)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序在启动时失败,我将问题解决到以下代码:
my App is failing on startup, i located the issue to the following code:
- (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)'
感谢您的帮助!
推荐答案
它的3.2 SDK Beta Bug!
Its a 3.2 SDK Beta Bug!
这篇关于NSInvalidUnarchiveOperationException:无法解码类的对象(UITableViewCellContentView)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文