Whenever I click on an image, I want the image to display as a larger image with the ability to zoom. So far when I click on the image, it displays as I want it to inside a scrollview. However, I have to get lucky to be able to zoom in properly. Most of the time when I attempt to zoom, the image just moves down and to the right and does not zoom at all. Here is my code:

```
-(void) pictureButtonAction 
{
    self.scrollImageView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
    self.scrollImageView.contentSize = self.fullImageView.image.size;
    self.scrollImageView.delegate = self;
    self.scrollImageView.clipsToBounds = YES;
    self.scrollImageView.scrollEnabled = YES;
    [self.scrollImageView setMaximumZoomScale:4.0f];
    [self.scrollImageView setMinimumZoomScale:1.0f];
    [self.view addSubview:self.scrollImageView];
    [self.scrollImageView addSubview:fullImageView];
}

-(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView 
{
    return self.fullImageView;
}

```