Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

amruta1487

macrumors newbie
Original poster
Nov 27, 2008
1
0
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
 

sanPietro98

macrumors 6502a
May 30, 2008
642
1
28.416834,-81.581214
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

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.