1

How to change the size of a modal view controller in iPad storyboard. In my iPad app I need to show a modal view controller which has to look like a huge popup. In the storyboard, in the attribute inspecter I set the size of the modal view controller to Freeform and presentation as Form Sheet then I changed the modal view controller's view height. But the height is not changed. Please Help!

saikamesh
  • 4,569
  • 11
  • 53
  • 93

2 Answers2

1

In IB, choose the modal view controller, open the attribute inspector on the right side bar. Change the Size under simulated metrics to something like freeform. Now you should be able to change the view size of your modal view controller.

Tim C.
  • 91
  • 6
0

It looks like you have to do it programmaticaly within the viewDidAppear of your modal view controller according to this link. I usually trust more what set up in my code than in IB.

Community
  • 1
  • 1
tiguero
  • 11,477
  • 5
  • 43
  • 61