1 Question: How to add Multiple Headings and elements in UIPickerView or create drop down list in IOS?

Question created on Sunday February 26, 2017

How can i have picker view which contain:

Heading1

Element1

Element2

Element3

Heading2

Element4

Element5

Element6

and so on? In the uipickerview.

3
1 answer                              3                         

Picker views don't have the concept of sections and headers. You would have to set up your data source yourself to insert header rows, and then those heading entries would be selectable. You'd have to write your picker view delegate to skip the heading row when the user selected it.

0
Wednesday February 22, 2017
source posted here