You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i see something: When i start circular spinner in Simulator, the speed is more fast (because of memory or cpu is faster then device). When i start it in iPhone 4 or 3gs, the circular spinner is very very slow. Can you explain why and how i can perform it? Did you use shadow in circular spinner?
Thanks.
The text was updated successfully, but these errors were encountered:
I fixed this bug.
All you need is replace timerFired method implementation with next: - (void) timerFired:(NSTimer *)timer // for TJCircularSpinner calls { _angle = _angle+_rotationAngle; if (_angle>360) { _angle = 00.00; } NSNumber *rotationAtStart = [self.layer valueForKeyPath:@"transform.rotation"]; CATransform3D myRotationTransform = CATransform3DRotate(self.layer.transform, M_1_PI, 0.0, 0.0, 1.0); self.layer.transform = myRotationTransform; CABasicAnimation *myAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"]; myAnimation.duration = 0.1; myAnimation.fromValue = rotationAtStart; myAnimation.toValue = [NSNumber numberWithFloat:([rotationAtStart floatValue] + M_1_PI)]; [self.layer addAnimation:myAnimation forKey:@"transform.rotation"]; }
The main performance issue for all code is redrawing UI elements. There is no need to do it. All you need is draw UI once time and just transforming it in future.
Hi, i see something: When i start circular spinner in Simulator, the speed is more fast (because of memory or cpu is faster then device). When i start it in iPhone 4 or 3gs, the circular spinner is very very slow. Can you explain why and how i can perform it? Did you use shadow in circular spinner?
Thanks.
The text was updated successfully, but these errors were encountered: