I’ve got a UITableView with several entrys, and these are divided up in several sections. If I click on one of the cells, a DetailViewController is accessed. In that DetailViewController, I want to use the data from the selected cell (the cell.textLabel and the cell.detailTextLabel), but I can’t access these.
Is there a possibility to solve the problem so I can access the textLabels from the selected cells with the DetailViewController?
I’ve got a UITableView with several entrys, and these are divided up in several
Share
One way is to add properties to DetailViewController for the two text values. Then in didSelectRowAtIndexPath, do something like this: