PDA

View Full Version : i want to add 4 picker controls on a single view can any 1 help me




amruta1487
Jan 6, 2009, 02:19 AM
What i have to do is, to add 4 picker controls on single view. n have to select value from all of them after spinning it. should get 4 values. can anybody help me



caveman_uk
Jan 6, 2009, 05:26 AM
I don't know about anyone else but I haven't a clue what you're actually asking for.

sanPietro98
Jan 6, 2009, 09:14 AM
I think what you're asking is that you want 4 UIPickerView controls on one UIView. I'm assuming you can put each one in a UITableView, but I would highly suggest you don't.

One UIPickerView takes up roughly 3/4 of the screen (in height). If you have multiple pickers, how does the iPhone know how to scroll down as opposed to "spinning" the picker? It is the same swipe action.

My recommendation is that you have a UITableView with 4 rows. When the user selects a row, your app should navigate to a new view with one UIPickerView. You can have a "save" or "cancel" button to return back to the table view. This would be more in conformance to the Apple style guides.

dejo
Jan 6, 2009, 11:08 AM
What i have to do is, to add 4 picker controls on single view. n have to select value from all of them after spinning it. should get 4 values. can anybody help me
How many sets of values are each of these four picker controls needing? If it's just one, I would suggest a single picker with four sets of values instead.