セルのテキストをクリックすると青色になり、再び同じセルに戻ると、別のセルをクリックするまで青色のままです。 UITableViewと詳細テキストラベルを使用しています。以下のように、ユーザーがUITableViewセルの色が消えない
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
.. your view changing code
}
- (無効)にtableView:(のUITableView *)のtableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { \t \t CategoriesList * dvController = [[CategoriesList alloc] initWithNibName:@ "CategoriesList"バンドル:nil]; \t //選択したオブジェクトを新しいView Controllerに渡します。 \t //dvController.description = description; \t //dvController.title=title; \t //dvController.descriptionImage=descriptionImage; \t [self.navigationController pushViewController:dvController animated:YES]; \t [dvController release]; \t } – ali
コードで編集していますが、機能していません – ali
@ali "not working"は間違った説明です。何がうまくいかない? – Vladimir