これは既存のバグなのか、それともこれを修正する方法があるのだろうかと思っていました。テーブルビューでナレーションをオンにすると、テーブルセルが空になります...誰か?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"tableCell";
//Exisint bug if using TableViewCell
TableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[TableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
// Configure the cell.
cell.pLabel.text = [self.tableArrayPlaces objectAtIndex:[indexPath row]];
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *selectedDest = [tableArrayPlaces objectAtIndex:indexPath.row];
//Get the selected country
NSLog(@"SelectedDest %@", selectedDest);
}
編集:コードが追加されました。これは私のセルにデータを入力するための私のコードです。ストーリーボードでは、「プッシュ」に設定しましたが、機能しないようです。何か助けはありますか?