I use the following code to load an image into a scroll. The image is always loaded with 100% zoom. Is there a way to set it to load at a different zoom level, such as .37?
I tried scrollView.zoomScale = .37 but it didn't seem to work
UIImageView *tempImage = [[UIImageView alloc]initWithImage:[UIImage imageWithData:data]]; self.imageView = tempImage; scrollView.contentSize = CGSizeMake(imageView.frame.size.width , imageView.frame.size.height); scrollView.maximumZoomScale = 1; scrollView.minimumZoomScale = .37; scrollView.clipsToBounds = YES; scrollView.delegate = self; [scrollView addSubview:imageView];
objective-c iphone uiscrollview uiimageview zoom
Brodie
source share