私はUITableViewを作成していますが、すべてのことがコードでうまくいってビルドが成功しましたが、シミュレータで実行したときに成功しました。UITableViewのエラー
スレッド1:プログラム受信信号: "EXC_BAD_ACCESS"。
ごrefernceについては、以下の私のコードを見つける:エラーがこの行にある
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:@"Mycell"];
if(cell == nil){
cell =[[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MYcell"]autorelease];
}
cell.textLabel.text=[NSString stringWithFormat:@"cell %@",(unsigned long)indexPath.row+1];
return cell;
}
:
cell.textLabel.text=[NSString stringWithFormat:@"cell %@",(unsigned long)indexPath.row+1];
は親切にあなたの提案
の
それが働いている – user1118664