0

Am using scrollView to implement Gallery like View. But i am stuck. I have dynamic, say 10 pics to be shown in the horizontal scroller, once at a time. am using following code

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{

    UIImageView *img1=[array_for_ImageView objectAtIndex:currentImageView];
    return img1;
}

problem is, it works fine for the first ImageView. But creates a huge rendering problem when trying to zoom the image at 2, 3 etc vertex. I want to implement scrolling and zooming both.

I also used

- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(CGFloat)scale

to check when the zooming end so that I can reset UIscrollView size again. Please guide me.

First image before scrolling

First image after scrolling

Here I tried to zoom the third image and its gone!!

Jasmeet
  • 1,522
  • 2
  • 22
  • 41

0 Answers0