• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: viewForZoomingInScrollView working but with extra blank space
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >viewForZoomingInScrollView working but with extra blank space (From: Devarshi Kulshreshtha <email@hidden>)

  • Prev by Date: viewForZoomingInScrollView working but with extra blank space
  • Next by Date: Re: UIActionSheet -addButtonWithTitle weirdness on iPad
  • Previous by thread: viewForZoomingInScrollView working but with extra blank space
  • Next by thread: Re: Can I create a thread with a runloop and a dispatch queue?
  • Index(es):
    • Date
    • Thread