EDIT: I just found out that the problem occurs when there is some text in the Text Field (set in the Storyboard) so, in this lines was where the error shows up.
//If the text field is empty show the place holder otherwise show the last selected option
if (self->textField.text.length == 0)
{
self->textField.placeholder = self->placeholderWhileSelecting;
}
else
{
[self->pickerView selectRow:[self->dataArray indexOfObject:self->textField.text] inComponent:0 animated:YES];
}
Just created a picker with this
Then, when I selected the DropDown, got this error
EDIT: I just found out that the problem occurs when there is some text in the Text Field (set in the Storyboard) so, in this lines was where the error shows up.