Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ストーリーボードにTableViewControllerがあり、セルがタップされたときにチェックマークを追加したいセル(静的)があります。コードでビルドしなくても、ストーリーボードから個々のセルを呼び出すにはどうすればよいですか?
テーブルビューのデリゲート:
- (void)tableView:(UITableView *)tv didSelectRowAtIndexPath:(NSIndexPath *)ip { MyCustomCell *cell = [tv cellForRowAtIndexPath:ip]; // add the checkmark to the cell [cell.contentView addSubview:checkmarkIcon]; }