CALayer autoresizingMask not for iOS SDK?
Asked Answered
P

2

8

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?

Pathogenic answered 22/12, 2011 at 7:50 Comment(0)
M
5

You can use layoutSublayers function of calayer.

Melanimelania answered 27/12, 2011 at 9:0 Comment(0)
T
9

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.

Tannenwald answered 4/9, 2013 at 9:47 Comment(0)
M
5

You can use layoutSublayers function of calayer.

Melanimelania answered 27/12, 2011 at 9:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.