Quantcast
Channel: Active questions tagged uipickerview - Stack Overflow
Viewing all articles
Browse latest Browse all 592

Take data from Enum to show on UIPickerView

$
0
0

I am creating a simple View where there is a UIPickerView and I want to display the choices on the PickerView from an enum. I have created an enum of possible drinks

enum drink{  case coffee  case tea  case cola  case water}

I was wondering how it would be possible to display the drinks in an UIPickerView? I am using Swift 1.2 and Xcode 6.3.1.. Thanks!! :)


Viewing all articles
Browse latest Browse all 592

Trending Articles