Hi there!
This is the sample code for retrieving the value using UIPickerView.
PIPickerView is often used to select elements from a selection.
This time, I created an app that allows you to choose between food, drink and food.
AppleDeveloperDocuments
UIPickerView