Re: viewForZoomingInScrollView working but with extra blank space
Re: viewForZoomingInScrollView working but with extra blank space
- Subject: Re: viewForZoomingInScrollView working but with extra blank space
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Wed, 02 Oct 2013 23:50:57 -0500
I have uploaded the sample code over here: https://db.tt/wrNjTLkV
On Wed, Oct 2, 2013 at 9:26 PM, Devarshi Kulshreshtha <
email@hidden> wrote:
> 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?
>
--
Thanks,
Devarshi
_______________________________________________
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