I am making a multiple choice test, and I don't know how to get the answers the user selected so I can grade the test.
I have a view controller (connected to a navigation controller) in the storyboard that has a table view, and I use a xib file for my custom cell.
These are my two classes:
ViewController class - holds a table view - is my data source - loads data into my xib table view cell - navigation bar has a button called "Grade"
Table view cell class - has a label outlet that displays a question - has three button outlets that display answer choices - has an action that changes the background color of the button when tapped
Loading the questions and answer choices data into the xib cell works fine.
When the user clicks the "Grade" button, I want to store the titleLabel text of all the buttons the user tapped in an array, but I don't know how to do this.