I have an app right now that has a table view with multiple cells that were loaded from an array. I delimited the text in a text view to separate the text into components that then were added to an array. From there I set the text label of each cell to each component in the array. So I have something that looks like this…

And I want to be able to select a cell and it highlights the cell, then I want to be able to click one of the buttons on the right. When I click a button it takes the text label of that cell and stores it in an array as a component.
I don’t know how I would go about writing the code for “take the text label of the selected cell and store it as a component.” Is there a way to detect if the cell is selected?
You’ll want to use a
NSMutableArrayto achieve this because you can add and remove objects from it on the fly: