views:

34

answers:

1

In detail code, can someone please show me a way to populate a multiple component UIPicker with data from a plist?

The reason I choose Plist as my datasource mainly is because it is much easier to manage visually and edit at the later stage. I want to create a simple app that have Picker with 4 components (lets call it component A, B, C, D). Each component get its data from a Plist, when user scroll through 4 component to get a random match/result. A text field will display some text. The data in component A,B,C,D is not many and I already a list of every possible match of the result. I would guess that I need to put this list somewhere in my app so that it knows what to display.

Any idea how to do this?

Thanks & Regards,

A: 

You would indeed have to put the list in your app.

Read the official UIPickerView Class Reference and have a look at the related code samples mentioned in the Class Reference. You should be able to get it up & running, it really speaks for itself.

If you have specific questions ask them on Stack Overflow, but you really can't expect us to write all your code.

Yannick Compernol