[Beginner] Adding a UIPickerView to a view

Discussion in 'iOS Programming' started by yyy, May 24, 2010.

  1. yyy macrumors regular

    Joined:
    Feb 10, 2007
    #1
    I've just started programming for the iPhone and I have a simple question:

    I have a view with some content in it and I want to add a UIPickerView to it. I know how to add the picker view but then it stretches all over the screen even if I resize it in Interface Builder.

    So do I need to put the UIPickerView in a separate view controller? Or should I resize it somehow so that it doesn't fill the whole screen?
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
  3. yyy thread starter macrumors regular

    Joined:
    Feb 10, 2007
    #3
    That's not what I was looking for but thanks anyway.

    Actually I had to connect the IBOutlet I wrote in Xcode with the UIPickerView object in Interface Builder.
     

Share This Page