viewForZoomingInScrollView working but with extra blank space
viewForZoomingInScrollView working but with extra blank space
- Subject: viewForZoomingInScrollView working but with extra blank space
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Wed, 02 Oct 2013 21:26:29 -0500
I am trying to implement default photos app like functionality.
I have added an image view to scroll view and implemented below method:
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
return self.fileDisplayImageView;
}
Problem is though it is zooming the image, it is adding space around its
bounds when zoomed.
Below is the original image:
http://i.stack.imgur.com/gE1ra.png
Here is the image after zoom, with extra blank space added at top:
http://i.stack.imgur.com/yGnsf.png
Can any one suggest, how can I resolve this problem?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden