Applied the transform to the collection view cell's frame #263

merged 1 commit into from Mar 9, 2013

2 participants


In the WWDC 2012 videos there's a lecture about advanced layouts. One of them shows how to zoom in the central cell, and we're using the code from this lecture in one of our apps. This code works fine on iOS 6 but not on iOS 5.

The main issue was that applying the attribute's frame to the cell's frame and the attribute's transform to the cell's transform was insufficient. The frame had to be transformed before being set. This is a one line fix (the best kind) so it should be pretty obvious what I'm doing. I've tried this on a small test project and on our main project and it works perfectly.

Unfortunately there's more to this issue regarding which layout methods are being called, but I didn't want to touch this for now. I'll open an issue for it and maybe somebody can get to it at some point.

@steipete steipete merged commit 7dce692 into steipete:master Mar 9, 2013

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment