• 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
viewForZoomingInScrollView working but with extra blank space
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: viewForZoomingInScrollView working but with extra blank space
      • From: Devarshi Kulshreshtha <email@hidden>
  • Prev by Date: Re: Runloops and Window Dragging
  • Next by Date: Re: viewForZoomingInScrollView working but with extra blank space
  • Previous by thread: Disabling copy operation in QLPreviewController
  • Next by thread: Re: viewForZoomingInScrollView working but with extra blank space
  • Index(es):
    • Date
    • Thread