I don\'t understand why the scrollview isn\'t working, because I followed advices from tutorials.
I created the UIScrollView
that contains an UIImageV
You need to return imgv
in your delegate method viewForZoomingInScrollView::
- (UIView *) viewForZoomingInScrollView:(UIScrollView *) view {
return imgv;
}
You have to add the imageView as a subview to the scrollview
[scrollView addSubview:imgv];
I believe you are forgetting to set the frame of your imageView properly
self.imageView.frame=CGRectMake(0, 0, self.imageView.image.size.width, self.imageView.image.size.height);