NavigationController pushed ViewControllers won't autorotate?

You are using a UINavigationController and it should return true for rotation. Please extend UINavigationController and use the extended class in Interface builder.

You are using a UINavigationController and it should return true for rotation. Please extend UINavigationController and use the extended class in Interface builder. #import @interface IRUINavigationController : UINavigationController { } @end #import "IRUINavigationController.

H" @implementation IRUINavigationController - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{ self. VisibleViewController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } @end I have used this is many projects and it works.

I tried it out and get the same result. – bart Jul 7 at 16:52.

It returns YES one time when it first loads, but does not fire again. Even when I rotate the device. – bart Jul 7 at 16:51.

I would suggest two things: ensure that all of your UIViewControllers' shouldAutorotateToInterfaceOrientation return YES; put the log message in willRotateToInterfaceOrientation to verify that the views react to device rotation; shouldAutorotateToInterfaceOrientation is a method that can be called in unpredictable ways by the framework (i. E, it is not always called when autorotating). Apart from that, it should work.

The UIViewControllers all return YES. They do not respond to willRotateToInterfaceOrientation and they only respond once to shouldAutorotateToInterfaceOrientation. – bart Jul 7 at 12:30.

Maybe this question can help you: shouldAutorotateToInterfaceOrientation won't work!

Yeah, I saw that one before I posted. It makes sense, but doesn't work for me. – bart Jul 7 at 16:52.

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