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

Discussion in 'iOS Programming' started by amruta1487, Jan 6, 2009.

  1. macrumors newbie

    Nov 27, 2008
    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
  2. Guest


    Feb 17, 2003
    Hitchin, Herts, UK
    I don't know about anyone else but I haven't a clue what you're actually asking for.
  3. macrumors 6502a


    May 30, 2008
    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.
  4. Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    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.

Share This Page