How do I set the starting row of the picker view in Swift? I see there is a code for Objective C, but I don't understand it. If anyone could explain how I can translate the Objective C code into Swift that would also be fantastic !
Thanks
How do I set the starting row of the picker view in Swift? I see there is a code for Objective C, but I don't understand it. If anyone could explain how I can translate the Objective C code into Swift that would also be fantastic !
Thanks
Default value selected in pickerview in swift 3
If Your array like bellow
Just add bellow line for default selected in pickerview
This is the code I have used in one of my apps:
Obviously, replace
row
and0
with whatever values you want.Hope this Helps!