I am presenting a UIModalView in a UISplitViewApplication. I have wired up a “done” action, which is:
- (IBAction) donePressed:(id) sender
{
[self dismissModalViewControllerAnimated:YES];
}
When I press the button, the orientation of the device changes to potrait mode. Why is this?
I don’t think you’ve provided enough code for anyone to be able to give you an accurate answer, but one possibility is that you haven’t implemented the following method in all of your controllers: