Hello everyone, today I will show you how to use the picker view, which we can use in our projects.
First of all, we create our project and add a picker view with the add button.
After the picker view we added to the main.storyboard, we add the horizantal and vertical values in the alligment constraint.
After completing the design in the main.storyboard, let’s define the picker view in viewcontroller.
We created a data array of cities and displayed this list in picker view. If we wanted to select a city from this list, we would have to use the line of the func (..didselectedrow ..) command.
I tried to show the simple and useful structure of the picker view, I hope I helped you.