所有的阵列,表视图崩溃时访问Dicitonarys
当我的表视图负荷,它访问几个委托方法。当我配置的电池,我把它调用此方法(其中“LinkedList的”是dictionarys数组):
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
// Configure the cell...
VUWIManager *vuwiManager = [VUWIManager sharedVuwiManager];
NSLog(@"%@", [[vuwiManager linkedList]objectAtIndex:indexPath.row]);
NSLog(@"TESTZOMGOFDSOJFDSJFPODJSAPFDS");
cell.textLabel.text = [[vuwiManager linkedList]objectAtIndex:indexPath.row];
return cell;
}
它崩溃在行cell.textLabel.text = [[vuwiManager linkedList]objectAtIndex:indexPath.row];
- 我知道我做错了这里,但我米不知道它是什么。 linkedList是NSDictionarys的NSMutableArray。
编辑:如果我打电话给cell.textLabel.text = [[vuwiManager linkedList]objectAtIndex:indexPath.row];
它在调试器中返回: { IP = "192.168.17.1"; desc = "description"; }
。只是想我会给出一些格式化细节。
感谢
现在尝试一下。 – Baub
这是完美的。谢谢!我会在8分钟内接受答案。我不敢相信我忽略了这一点。 – Baub