Closed WedgeSparda closed 8 years ago
Yeah, it makes sense.
I was thinking about replacing this:
if ([self->dataArray indexOfObject:self->textField.text] != NSNotFound)
with this:
if ([self->dataArray containsObject:self->textField.text])
For better readability: what do you think about that? Since we're using the check two times already (#11 and #12)...
I think is great. Code will be more readable.
Done.
After fixing #11 I found out that, if the UITextField has text before showing the picker, if you choose the default (first) option, it didn't show up. Hope this fix it all.