• 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: UITableView with multiple UIScrollView each having its own zoom scale?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITableView with multiple UIScrollView each having its own zoom scale?


  • Subject: Re: UITableView with multiple UIScrollView each having its own zoom scale?
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 08 Aug 2012 00:56:28 -0700

On Aug 8, 2012, at 00:27 , Laurent Daudelin <email@hidden> wrote:

> 			minimumScale = [self.imageScrollView frame].size.width  / [self.postPictureView frame].size.width;

IDK, but this looks like the problem to me. The calculation is using rect widths that are in 2 different coordinate systems.

With a freshly-allocated cell, the transform on the image view is the identity, so the coordinate systems happen to match. With a reused cell, the image view has a scale on it from its previous use, so the coordinate systems don't match, and the calculated scale is meaningless.

Incidentally, because the image view has a transform on it, I don't believe it's valid to use its "frame" property. You should be using its bounds and its center directly, I think.

Again, FWIW.


_______________________________________________

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: UITableView with multiple UIScrollView each having its own zoom scale?
      • From: Laurent Daudelin <email@hidden>
References: 
 >UITableView with multiple UIScrollView each having its own zoom scale? (From: Laurent Daudelin <email@hidden>)
 >Re: UITableView with multiple UIScrollView each having its own zoom scale? (From: Roland King <email@hidden>)
 >Re: UITableView with multiple UIScrollView each having its own zoom scale? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Re: UITableView with multiple UIScrollView each having its own zoom scale?
  • Next by Date: Re: +underPageBackgroundColor
  • Previous by thread: Re: UITableView with multiple UIScrollView each having its own zoom scale?
  • Next by thread: Re: UITableView with multiple UIScrollView each having its own zoom scale?
  • Index(es):
    • Date
    • Thread