Edits are in Red below
I'm populating two text fields using a UIPickerView with two columns of data.
I want to ensure that the first entry for each column is not still selected when the action button is touched.
So imagine a two column UIPicker View, and as the index 0 entry I have 'Choose' on each column.
I know i need to do an if / else if statement to check this, but have no idea how to refer to those elements.
Should I refer to the column index at 0 somehow, or can I check the label itself to see if it still has the default title I set in the attributes when the program is first launched?
I already have the Picker View getting the selected element into the text boxes, but now I need to use those selections when the button is pressed.
Any help is greatly appreciated.
I'm populating two text fields using a UIPickerView with two columns of data.
I want to ensure that the first entry for each column is not still selected when the action button is touched.
So imagine a two column UIPicker View, and as the index 0 entry I have 'Choose' on each column.
I know i need to do an if / else if statement to check this, but have no idea how to refer to those elements.
Should I refer to the column index at 0 somehow, or can I check the label itself to see if it still has the default title I set in the attributes when the program is first launched?
I already have the Picker View getting the selected element into the text boxes, but now I need to use those selections when the button is pressed.
Any help is greatly appreciated.
Last edited: