テーブルビューに問題がありましたdidSelectメソッドとprepareForSegueです。私はSWRevealControllerを私のアプリで使用しました。セルを選択すると、ビューが表示されます。 ときどき正しく動作しない。ビューを表示するには2回のタップが必要です。数ヶ月前に私は、ブロックアクションを実行する古い公開画面フレームを使用しました。それは完全に働いた。テーブルビューのセルには、ビューを表示するために2つのタップが必要です
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
for (int i=0; i<6; i++)
{
UITableViewCell *cell = [self tableView:tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]];
if (i == indexPath.row)
{
cell.contentView.backgroundColor = [UIColor colorWithRed:KColorRedSelected green:KColorGreenSelected blue:KColorBlueSelected alpha:1];
}
else
{
cell.contentView.backgroundColor = [UIColor colorWithRed:KColorRed green:KColorGreen blue:KColorBlue alpha:1];
}
}
}
あなたは 'didSelect'コード –
を表示できますか?for(int i = 0; i <6; i ++)を使用しました。 –
セルの色を変更します。 – phani