Re: Observing changes in TableView
Gerriet, I am doing the same thing now on iOS.toggle quoted messageShow quoted text
Here’s what I am doing and am open to better approaches.
Being able to do this requires a special set up where the cell contents are retrieved from a data set based on indexPath.
All my data is in a dictionary that is keyed off of indexPath row and section, so displaying the data is simply a case of getting the proper index and using the section and row to retrieve the correct data from the data source.
I have subclassed UITableViewCell but I don’t think you need to do this. A cell has access to its indexPath, but you can set the indexPath of the clicked/tapped item in another object if you wish.
Once this is done, I send a notification of processTappedCellItem to the tableViewController and it checks the indexPath of what was tapped.
Since everything is keyed off of the item’s indexPath, we know the item for which the button was clicked/tapped.
Does this approach work for you?
I’m using this to manage editable fields in a tableViewController for data entry.
On Nov 8, 2017, at 3:47 AM, Gerriet M. Denkmann <g@...> wrote: