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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -