Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make a rollable item menu list using Xcode

Tags:

ios

swift

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?

like image 368
sgiraz Avatar asked Jul 11 '26 03:07

sgiraz


1 Answers

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 from UIPickerViewDelegate protocol and provide your implementation of it:

func viewForRow(_ row: Int, forComponent component: Int) -> UIView?
like image 115
Evgeny Karkan Avatar answered Jul 17 '26 16:07

Evgeny Karkan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!