• 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: Laurent Daudelin <email@hidden>
  • Date: Wed, 08 Aug 2012 08:47:24 -0700

Thanks, Quincey! I'll give it a shot!

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software					email@hidden

On Aug 8, 2012, at 00:56, Quincey Morris <email@hidden> wrote:

> 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

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>)
 >Re: UITableView with multiple UIScrollView each having its own zoom scale? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
  • Next by Date: Cocoaheads Lake Forest meets tonight (Wednesday) night - continuing a reading group on Matt Neuburg's Programming iOS 5, 2nd edition
  • Previous by thread: Re: UITableView with multiple UIScrollView each having its own zoom scale?
  • Next by thread: NSTableView not setting -clickedRow, -clickedColumn as it should
  • Index(es):
    • Date
    • Thread