これは既存のバグか、これを修正するにはどうしようもありませんか?テーブルビューでボイスオーバーをオンにすると、テーブルセルが空になります。誰ですか?Xcodeのバグ? VoiceOver with TableView
- (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);
}
編集:コードが追加されました。これは自分の細胞を移植するためのコードです。私がストーリーボードで「プッシュ」に設定しても、動作していないようです。どんな助け?
良いアイデア。連絡先を使用しようとしました。問題ありません...私のコードだと思います。 – Hexark