NSInvalidUnarchiveOperationException: не может декодировать объект класса (UITableViewCellContentView) - PullRequest
2 голосов
/ 30 января 2010

мое приложение не запускается при запуске, я обнаружил проблему в следующем коде:

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

Спасибо за вашу помощь!

1 Ответ

3 голосов
/ 02 февраля 2010

Решение: Странное исключение загрузки UITableViewCell

Это бета-версия 3.2 SDK!

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...