i know it will be setup cell on this method
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
for example if i want to edit property of cell in
tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
how can i access to the cell that i selected?
You can get visible cell in UITableView using following method:
So in your didSelectRow method you will have something like (you may need to set cell’s selectionStyle to
UITableViewCellSelectionStyleNoneto make your changes display properly):Or you can subclass UITableViewCell, implement
- (void)setSelected:(BOOL)selected animated:(BOOL)animatedmethod and change cell properties there.