Not working Orientation Notifications in VIewController under modal, with iOS5?

Up vote 1 down vote favorite share g+ share fb share tw.

Excuse my English.. :) In my viewController (A) there is a orientation notifier like this: - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { UIDeviceOrientation newOrientation = UIDevice currentDevice orientation; if (newOrientation == UIDeviceOrientationUnknown || newOrientation == UIDeviceOrientationFaceUp || newOrientation == UIDeviceOrientationFaceDown) { UIInterfaceOrientation mainOrientation = UIApplication sharedApplication statusBarOrientation; newOrientation = (UIDeviceOrientation) mainOrientation; } This is working properly when this is the controller. There is a ModalViewController (B) that sometimes appear, and this could be reoriented to new orientation, and do it perfect. BUT, when this modal is dismissed, the main view controller remains in the same orientation it was before.

Controlling by breakpoints I´ve checked that the code in the method above is not being executed. All this has been working perfectly before I actualized IOS5 SDK. (I´ve not refactoriced to ARC, because of CGPLOT issues).

Any one could help me, or has suffered same issue? The obvious solution is to call this method from the modal view... but it´s annoying..:( Thanks you very much and have a nice day! Orientation ios5 modalviewcontroller issues link|improve this question asked Oct 21 '11 at 7:57ligthbringer82.

That worked fine! Thank you very much! – ligthbringer Oct 21 '11 at 9:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions