ios - How do you give cells in a TableView a unique reference -
i'm still new ios development, bear me.
i've got tableview using static cells contain options (click check), able select cells fine. i'd assign value (identifier) each cell, when cell selected or de-selected can add/remove array. then, once editing has finished, use references stored in array update respective coredata attributes.
my google skills have failed me today, push in right direction appreciated.
thanks.
nsindexpath best tool that! unique selected cell.
- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { nslog(@"%i", indexpath.row); nslog(@"%i", indexpath.section); }
and think need this:
[yourarray objectatindex:indexpath.row];
to reference .
Comments
Post a Comment