The zoom for uiscrollview isn't working
问题 I don't understand why the scrollview isn't working, because I followed advices from tutorials. I created the UIScrollView that contains an UIImageView and I also added the method - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return imgv; } and the UIScrollViewDelegate in the interface, but it isn't working. Here is the code for the UIScrollView : imgv = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 1000, 500)]; imgv.image = [UIImage imageWithData:retrievedData];