sgira sgira - 4 months ago 19
Swift Question

Make a rollable item menu list using Xcode

I would insert a rollable menu list in my ViewController, as in the follow app:

enter image description here

How can I make it using Xcode?
how is called this type of menu?

Answer

UIPickerView is what you want to display it.
Check documentation on this with more info https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPickerView_Class/

To be able to use an image and text inside UIPickerView's row, you should override next function and provide your implementation:

func viewForRow(_ row: Int, forComponent component: Int) -> UIView?