iOS — how do you control the size of a modal view controller?
I am presenting a modal view controller. If it matters, it is scrolling up from the bottom. How can I control what portion of the screen it occupies? EDIT: I have the following in the modal view controller. It's not helping. - (void)viewDidLoad { TestResultView *trv = [[TestResultView alloc]initWithTest: [Model m].currentTest]; self.view = trv; trv.frame = CGRectMake(0, 320, 320, 160); [trv release]; [super viewDidLoad]; } You can modify the frame of the view controller, but if you're using UIViewController's -presentModalViewController:animated: method, the view behind will be unloaded once