subview are visible outside the parent scrollview

Discussion in 'iOS Programming' started by AbhishekApple, Jun 30, 2011.

  1. AbhishekApple macrumors member

    Joined:
    Aug 5, 2010
    #1
    I have a scrollview of dimension suppose (0,50,200,200) and have multiple images as subviews in it and it scrolls vertically.

    These images are visible outside the parent scrollview like suppose i have 5 images of height 100 each, so only 2 images should be visible and other images should be hidden which are beyond the scrollview height and appear once i scroll.
    But the other images are visible too .
    Please suggest
     
  2. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    If this is the same code as you posted in your Scrollview locked, then I would guess it because of this line of code:
    Code:
    [svASource setClipsToBounds:NO]
    
     
  3. AbhishekApple thread starter macrumors member

    Joined:
    Aug 5, 2010
    #3
    Thanks awsome
     

Share This Page