Reputation: 1683
I have a pickerView in a textField.
Problem is how to hide blinking cursor after a word in the textField when I choose the row.
Thanks.
Upvotes: 1
Views: 429
Reputation: 3908
You can do using setting the color of your textfield
Objective C:
[[self yourtextField] setTintColor:[UIColor clearColor]];
Swift:
self.yourtextField().tintColor = UIColor.clearColor()
Upvotes: 1
Reputation: 7893
Try using following code in didSelectRow
:
[yourTextField resignFirstResponder]
Upvotes: 0