gmoledina / GMGridView

A performant Grid-View for iOS (iPhone/iPad) that allows sorting of views with gestures (the user can move the items with his finger to sort them) and pinching/rotating/panning gestures allow the user to play with the view and toggle from the cellview to a fullsize display.
MIT License
2.3k stars 512 forks source link

animation repeat count doesn't work in GMGridViewCell #211

Open codeIreneFFM opened 7 years ago

codeIreneFFM commented 7 years ago

Great project,for sure. But I have an issue when adding custom view on the GMGridViewCell object and try to perform an animation. I add one rotation animation on my image view. This image view is added on a GMGridViewCell. Animation.repeatcount is set to max ,however the repeat count is random. Could you please give me an answer how to fix this ?

import "AndLinkNewRootSceneItemView.m"

-(void)addanimation{ CABasicAnimation *animation = [self spinAnimationWithDuration:1.0 clockwise:YES repeat:YES]; animation.delegate = self; [self.curSceneImageView.layer addAnimation:animation forKey:@"rotationAnimation"]; }

the CGFLOAT_MAX doesn't work.