objective c - CGAffineTransformMakeRotation not resizing view in iOS 6 -
when use cgaffinetransformmakerotation on view not resize view. cuts part of view out. works fine on ios 5.1, reason not work on ios 6.
could please explain doing wrong/not taking consideration added in ios 6?
here code using:
zoomstepper.transform = cgaffinetransformmakerotation(270.0/180*m_pi);
while view rotates expected in ios 5, in ios 6 not. views have same bounds , frame after rotation in both ios 5 , ios 6. wondering how can ios 5 behavior rotate in ios 6.
i figured out. if create new view , apply rotation view , add view wish rotate subview rotate , works on both ios 5 , ios 6:
uiview *myview = [[uiview alloc] initwithframe:cgrectmake(0, 0, 94, 27)]; [myview settransform:cgaffinetransformmakerotation(270.0/180*m_pi)]; [self.view addsubview:myview]; [myview addsubview:zoomstepper];
Comments
Post a Comment