Iphone uiscrollview and uiimageview - setting initial zoom?

Zooming only works when you implement the viewForZoomingInScrollView: delegate callback (UIView *) viewForZoomingInScrollView:(UIScrollView *)inScroll { return imageView; }.

Zooming only works when you implement the viewForZoomingInScrollView: delegate callback. -(UIView *) viewForZoomingInScrollView:(UIScrollView *)inScroll { return imageView; }.

I did not know this and it solved my problem. Thanks so much! – K-RAN Jul 27 '10 at 14:43.

There is a zoomScale property that you can set.

1 But take note that as Brodie4598 mentioned that this should be done after the imageView has been added to the scrollView. – paul_sns Jun 4 '10 at 14:06.

I figured it out... I was using scrollView. ZoomScale = 0.37; before I loaded the image changed code and it works great. UIImageView *tempImage = UIImageView allocinitWithImage: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; scrollView. ZoomScale = .37.

The image always loads at 100% zoom. Is there a way to set it to load to another zoom level, say .37? I have tried scrollView.

Zooming only works when you implement the viewForZoomingInScrollView: delegate callback.

I figured it out... I was using scrollView. ZoomScale = 0.37; before I loaded the image changed code and it works great.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions