I noticed, what CALayer, on iOS SDK haven't autoresizingMask property. I'm not sure what custom overloading of method "setFrame:" can work normally with animated sublayers autoresizing. Are there is an alternative without using UIView?
CALayer autoresizingMask not for iOS SDK?
Asked Answered
You can use layoutSublayers function of calayer.
If you do not want to subclass CALayer
and added the layer to the layer of a UIView
then you can override
- (void)layoutSublayersOfLayer:(CALayer *)layer
method of view.
You can use layoutSublayers function of calayer.
© 2022 - 2024 — McMap. All rights reserved.