ios5 - size of modal view controller with storyboard

Alessandro picture Alessandro · Nov 8, 2011 · Viewed 12.8k times · Source
  1. is there any way to resize a View Controller that has been presented modally using a storyboard segue?

  2. how do I present another View Controller from this modal view controller with a flip transition?

If I define it as Style=Modal, Presentation=Default, Transition=Flip Horizontal it just looks weird (background is white).

Thx!

Answer

Scott Sherwood picture Scott Sherwood · Nov 26, 2011

Yes. In interface builder select the view controller and in the attribute inspector set Size to freeform (from inferred). Then select the view and set its measurements to whatever you require. An important point to note is uncheck Resize View From NIB in the view controller otherwise the view becomes full screen again.

Not sure about the second question if the background is the only problem can't you just set the colour?

Hope this helps.