Sotryboard and scroller, how do I arrange my objects?

Discussion in 'iOS Programming' started by thedon1, Jun 8, 2013.

  1. thedon1 macrumors 6502

    Joined:
    Jun 26, 2010
    #1
    I've got a storyboard with my main view. I put I scroller on the view and assign the size. How on earth do I arrange my text fields, buttons etc on the out of view space??

    I know it's possible using a xib but how can I do this in a storyboard?

    Thanks
     
  2. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #2
    Why is it any different on a storyboard? The IB editor for storyboards and XIBs is nearly identical.
     
  3. thedon1 thread starter macrumors 6502

    Joined:
    Jun 26, 2010
    #3
    In an xib, I can layout a UIScrollview on to the work surface (square background) at full size and layout my objects first, this is not possible with storyboards.

    How do you go about laying out your objects in the un seen space on a scroller?
     
  4. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #4
    I haven't tackled this particular problem yet.

    Could you make the outer content view as big as the extent of your scrolling view, edit your scrolling view, and then resize the outer content view?
     
  5. thedon1 thread starter macrumors 6502

    Joined:
    Jun 26, 2010
    #5
    OK I just saw a youtube video where it shows that if I make the view freeform and then press cmd and =, it makes the view longer!

    First time I had seen that mentioned but that's exactly what I needed.

    Edit: OK if cmd = makes it longer in increments, how do I make it smaller in the same increments?
     
  6. Sonnestah macrumors regular

    Joined:
    Mar 2, 2013
    #6
    tried cmd -?
     
  7. thedon1 thread starter macrumors 6502

    Joined:
    Jun 26, 2010
    #7
    Already tried that, didn't work.
     
  8. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #8
    cmd shift -

    maybe?
     

Share This Page