I have a UIView with several subscript subsets (several CAGradientLayers with CAShapeLayer masks, etc.). I use the UIView animation method to animate its borders (increasing both its width and height).
[UIView animateWithDuration:2 delay:0 options:UIViewAnimationOptionCurveEaseOut|UIViewAnimationOptionAutoreverse|UIViewAnimationOptionRepeat animations:^{ CGRect bounds = myView.bounds; bounds.size.width += 20; bounds.size.height += 20; myView.bounds = bounds; } completion:nil];
This works great, except for the fact that subwords are not redrawn as animations. What is the best way to do this? Do I need to set some detection limits for detecting a key value and call setNeedsDisplay on all sublayers?
source share