THSpringyCollectionView icon indicating copy to clipboard operation
THSpringyCollectionView copied to clipboard

The animation is broken in ios8

Open palcalde opened this issue 11 years ago • 1 comments

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!

palcalde avatar Jul 04 '14 01:07 palcalde

我在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);

life2nd avatar Sep 08 '16 12:09 life2nd