Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The animation is broken in ios8 #13

Open
palcalde opened this issue Jul 4, 2014 · 1 comment
Open

The animation is broken in ios8 #13

palcalde opened this issue Jul 4, 2014 · 1 comment

Comments

@palcalde
Copy link

palcalde commented Jul 4, 2014

I've tried with many sample projects like this one and all of them are broken in ios 8. The cells move around in a very weird way. Please let me know if you find a way to fix it!

@life2nd
Copy link

life2nd commented Sep 8, 2016

我在6Plus上出现这样的问题,原因在于center位置不对了,我只需要垂直方向。所以我修改了一下:
UIAttachmentBehavior *spring = [[UIAttachmentBehavior alloc] initWithItem:attribute attachedToAnchor:attribute.center];
--->
UIAttachmentBehavior *spring = [[UIAttachmentBehavior alloc] initWithItem:attribute attachedToAnchor:CGPointMake(self.collectionView.bounds.size.width/2, attribute.center.y)];

和:
item.center = center;
--->
item.center = CGPointMake(self.collectionView.bounds.size.width/2, center.y);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants