UIScrollView silly questions...

Discussion in 'iOS Programming' started by animefx, Jul 2, 2012.

  1. animefx macrumors regular

    Joined:
    May 10, 2005
    Location:
    Illinois
    #1
    I created a UIScrollView and was wondering how do I use it to display content if I can't actually scroll the view to put something that would normally require scrolling on the iPad...

    Let's say I have a series of labels...

    label1
    label2
    label3
    etc...

    At the bottom of the iPad UIController lets say I'm at label26 and I want to add more... I can't "scroll up" with the UIScrollView controller to add more labels... How do I do this?

    I can understand if maybe I created them during runtime and the labels were created that way maybe when it hits a certain bounds, but if it's something I make ahead of time how do I scroll the UIScrollview "up" (or to the right) to add more objects?

    Thanks
     
  2. cMacSW macrumors regular

    Joined:
    Mar 20, 2006
    #2
    If you're displaying a variable list of labels why not use a TableView?
     
  3. animefx thread starter macrumors regular

    Joined:
    May 10, 2005
    Location:
    Illinois
    #3
    I suppose that would make more sense. I'm not trying to understand the difference between the 3 types of table controls... ack.

    I was mostly curious though, maybe UIScrollView is meant to operate a certain way that doesn't make sense for what I'm asking it to do.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4

Share This Page