Help with scrolling on a UIImageView

Discussion in 'iOS Development' started by abotsch31, Jun 28, 2009.

  1. abotsch31

    abotsch31 Banned

    Joined:
    Feb 9, 2009
    Messages:
    31
    Likes Received:
    0
    Hello,
    I am having a problem with figuring out how to make the imageview that is fixed at the bottom of my window. I am wanting to put a image in this imageview that is larger than the actual imageview, therefore I would like it to have the scroll feature.

    Does anyone know how I would add the scroll feature onto this imageview?

    Thanks
    Abotsch31
  2. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    Put it in a UIScrollView...
  3. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    Code:
    UIScrollView * scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
    [scrollView setContentSize:CGSizeMake(image.frame.size.width, image.frame.size.height)];
    [scrollView addSubview:image];
    [self.view addSubview:scrollView];
    

Share This Page