I have a detail view where i load a help view with a button. I am using [UIViewController presentModalViewController:animated:]
.
In help view I am dismissing the view with a button. I am using [UIViewController dismissModalViewControllerAnimated:]
.
The problem is, after dismissing the help view, the detail view is in portrait mode, regardless of which orientation the device is in.
In all the view controllers, I have implemented shouldAutoRotateToInterfaceOrientation:
and returned YES.