gpt4 book ai didi

iphone - NSInvalidUnarchiveOperationException : cannot decode object of class (UITableViewCellContentView)

转载 作者:行者123 更新时间:2023-12-03 20:59:31 25 4
gpt4 key购买 nike

我的应用程序启动失败,我将问题定位到以下代码:

- (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)'

感谢您的帮助!

最佳答案

解决方案:Weird UITableViewCell Loading Exception

这是一个 3.2 SDK Beta 错误!

关于iphone - NSInvalidUnarchiveOperationException : cannot decode object of class (UITableViewCellContentView),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2169391/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com