0

私はこのコードを入れました:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

     UITableViewCell * tableCell = [self.tableView cellForRowAtIndexPath:indexPath];

     tableCell.accessoryType = UITableViewCellAccessoryCheckmark;
     [tableView deselectRowAtIndexPath:(NSIndexPath *)indexPath animated:YES];

}

しかし、なぜかチェックマークが表示されません。誰か助けてくれませんか?

4

1 に答える 1

0

実際、私はそれを理解しました。それが正しい方法です。黒い背景があったため、見づらかっただけです。

于 2010-08-10T16:18:04.937 に答える