Я не понимаю ... мне удается заполнить мое табличное представление, но когда я прокручиваю его, происходит сбой без сообщения ..
я создаю tabQuestion
с NSMutablearray
, а затем добавляю его в мой делегат: cellForRowAtIndexPath
NSDictionary *question = [self.tabQuestion objectAtIndex:indexPath.row];
[cell setAccessoryType: UITableViewCellAccessoryDisclosureIndicator];
cell.textLabel.text = [NSString stringWithFormat:@"%@", [question objectForKey:@"question"]];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@", [question objectForKey:@"reponse"]];
if ([[question objectForKey:@"bOk"] isEqualToString:@"1"]) {
cell.imageView.image = [UIImage imageNamed:@"ok.png"];
}
else
{
cell.imageView.image = [UIImage imageNamed:@"ok.png"];
}
[question release];
return cell;