Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now all that’s left is to use our reference to the picker to get the actual values Mike selects. We need to change the sendButtonTapped method to pull the values from the picker. Looking at the UIPickerView documentation, the method we need is selectedRowInComponent:. That method returns a row index we can use as an index into our arrays.
For now we’re just going to log this message to the console so we can see the string we’re building, and then we’ll generate the email to send out in just a minute. Let’s make sure we implemented this correctly first before emailing Renee.