objective c - CALayer auto resizing in iOS on device orientation change -
i have added 1 more calayer custom view ,the code
hostedgraphlayer.frame = self.layer.bounds; [self.layer addsublayer:hostedgraphlayer];
when device orientation changes view's layer's sublayer rotated not autoresizing respect view. layer wont have autoresize property ios.
one of answer in stackoverflow calayers didn't resized on uiview's bounds change. why? in case setting layer's frame on device orientation change ,layer wont autoresize respect view in between rotation start , end, can seen in simulator toggling slow animation.
is there fix "when view rotated layers rotated , should resize w.r.t view".
no there not built in fix yet,
you have change frames .
correct me if wrong.
Comments
Post a Comment