Re: UITableView with multiple UIScrollView each having its own zoom scale?
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