オブジェクトのセットをラベルの下に保存するプログラムを作成しました。ラベルは後で表示および変更できます。そのために次のコードを作成しました(チェックマークを追加する部分のみを含む):
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
cell.selectionStyle = UITableViewCellSelectionStyleNone; //To avoid the blue selection
//necessary codes to populate the table here
[tableView cellForRowAtIndexPath:indexPath].accessoryType = UITableViewCellAccessoryCheckmark;
return cell;
}
しかし、テーブルにはチェックマークさえ表示されていません。はい、コメントをオフにして再試行しましたがcell.selectionStyle = UITableViewCellSelectionStyleNone;
、まだ役に立ちません。既に作成されたチェックマークをオフにするためのコードを他の場所に書いていません。