我得到一個錯誤任何一個可以幫助我解決這個線程1:信號SIGABRT
線程1:信號SIGABRT
這是代碼
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
/* FOR SIMPLE CELL */
static NSString *MyIdentifier = @"MyCell";
UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier];
cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
word *worddc = [Array objectAtIndex:[indexPath row]]; //ERROR thread 1 signal SIGABRT
cell.textLabel.text = worddc.word_alphabet;
return cell;
}
我們需要更多的幫助。爲什麼這個代碼有用?你想用它做什麼? *線程1:信號SIGABRT *非常非常普遍,如果不提供更多信息,根本無濟於事。 – rdurand
您應該大寫類(「Word」)和小寫變量(「數組」)。 – Eiko
我想它必須是內存管理問題。你確定Array是一個有效的參考嗎?它可能已被釋放。 –