UIScrollView no responde a setZoomScale:
¿Qué estoy haciendo mal? Aquí es cómo creo + puebla mi scrollView
-(void)viewDidAppear:(BOOL)animated {
UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bigimage.jpg"]];
imgView.contentMode = UIViewContentModeScaleAspectFit;
scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];
scrollView.contentSize = imgView.frame.size;
scrollView.minimumZoomScale = scrollView.frame.size.width / scrollView.contentSize.width * 0.99;
scrollView.maximumZoomScale = 2;
[self.view addSubview:scrollView];
[scrollView addSubview:imgView];
[scrollView setZoomScale:0.5 animated:YES];
NSLog(@"current zoomScale: %f", scrollView.zoomScale);
[imgView release];
}
El NSLogged zoomScale es 1.0, y la imagen se muestra claramente a tamaño completo. Pinch zoom no hace nada. He intentado casi todo lo que puedo encontrar en la red, pero todo el mundo parece estar haciendo exactamente esto, y funciona para ellos.
La ayuda es muy apreciada!