Landscape only app. On my main window xib, I’ve got a UIView. I’m loading a UIScrollview programatically into that UIView which works just fine. On that scrollview, I’ve got a button that brings up a “detail” screen (a separate view controller), via a presentModalViewController call:
LearnITViewController *learnit = [[LearnITViewController alloc] initWithNibName:@"LearnITViewController" bundle:nil];
self.learnitView = learnit;
[self presentModalViewController:learnit animated:YES];
[learnit release];
The action’s being called but the modal view doesn’t take up the whole screen when the scrollview is a subview. Instead, it’s popping into the parent scrollview and flipping the orientation, etc. Not the desired behavior.
Any guidance on how to make the modal view full screen when the call is from scrollview which is a subview of a container UIView on the main xib?
Thanks for all the comments. Found a tip somewhere on overriding presentModalViewController and bubbling up in a loop until the main controller’s reached (in my case, HomeViewController). Worked like a champ.
I’m overriding in the .m file of the UIScrollview that contains the button that makes the call.