ScrollView In iOS5 And Storyboard

Discussion in 'iOS Programming' started by loon3y, Nov 15, 2011.

  1. loon3y macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #1
    Im recreating my app in iOS5 storyboard, and as i was copying and pasting all the coding, the scroll view doesn't work properly, i was wondering if its an ios5 or storyboard problem, because it works perfectly fine in my old app which is programmed in ios4, and using separate nib files.

    i also had a problem sending the scrollview to the back I'm not sure how i did it before (i forgot like an idiot) but the scroll doesn't work it juz shows the bar going down but all my labels and textfields stay where they are.


    heres the coding for my scroll view in viewdidload, but i think it might be what position the scroll view is at (back, or front, or my labels or text fields might not be attactched to the scroll view) plz help i forget and i don't want to waste time researching and doing trial and error stuff for something i already wasted time on learning.




    Code:
       scrollView.frame = CGRectMake (0, 0, 320, 460);
        [scrollView setContentSize:CGSizeMake(320, 600)];
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    You think the learning part was a waste of time? That kind of attitude is probably not going to endear you to those you seek help from.
     
  3. loon3y thread starter macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #3
    well i meant since i already learned it per say , it'll be a waste of time researching over again. cuz i usually take an hour or so more.


    i apologize if u took it the wrong way
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Hmm, if you learned it already, why would you need to research it again? Wouldn't you just apply what you've already learned?
     
  5. loon3y thread starter macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #5
    i forgot, I'm overseas and I've been sick for the past week, I'm still sick, i need to get out of india.
     
  6. loon3y thread starter macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #6
    the problem was that i added the scroll view last and arranged it to the back, for some reason it doesn't work well.

    i juz created the whole view again, and added the scroll view first and it worked perfectly fine, just for whoever else runs into this problem
     

Share This Page