how can i get the image size when it s zoomed by user, i write these on my project :
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
return imageView;
}
-(void) didLoad{
UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.jpg"]];
self.imageView = tempImageView;
[tempImageView release];
scrollMapView.contentSize = CGSizeMake(imageView.frame.size.width, imageView.frame.size.height);
scrollMapView.maximumZoomScale = 4.0;
scrollMapView.minimumZoomScale = 0.75;
scrollMapView.clipsToBounds = YES;
scrollMapView.delegate = self;
[scrollMapView addSubview:imageView];
}
i 只是想知道图像大小。 谢谢。