Thanks, Quincey! I'll give it a shot! -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com
On Aug 8, 2012, at 00:56, Quincey Morris <quinceymor...@rivergatesoftware.com> wrote: > On Aug 8, 2012, at 00:27 , Laurent Daudelin <laur...@nemesys-soft.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com