I am facing a weird problem here.
For some reason I am disabling the animation during orientation change in my view controller using [UIView setAnimationsEnabled:NO];
But when the alert view is present and if I change the orientation then it is giving weird result.
The attached screen shot is when I change the orientation to landscape.
Please note: I am using standard UIAlertView
and it is default overlay which is shown when the alert view is present and there is no customisation involved here.
As per the documentation
If you disable animations, code inside subsequent animation blocks is still executed but no animations actually occur. Thus, any changes you make inside an animation block are reflected immediately instead of being animated.
So it should not affect the resizing of the default overlay. Is it a restriction in disabling animation !??
I am not understanding why I am getting like this. Could anyone please help in solving this.
UIAlertView
and then rotating the device, right? Or displaying it during the rotation? – LucieUIAlertView
and then rotating the device. – SvetlanaUIAlertView
is displayed, the rotation is disabled automatically. – LucieUIAlertView
is present. I have checked that in normal senario also. If I remove[UIView setAnimationsEnabled:NO];
everything works well. – Svetlana