0

Can we flip UIPopovercontroller horizontally so as to load a new subview view?

Is it possible to achieve an animation which does:

  1. Load small view in UIpoovercontroller first and on a click of a button in popover
  2. Flip UIpoovercontroller and loads a model view
ben75
  • 29,217
  • 10
  • 88
  • 134
sniper
  • 399
  • 1
  • 3
  • 9

1 Answers1

0

Yes. You need to set the modalPresentationStyle of your second controller to UIModalPresentationCurrentContext, and its modalTransitionStyle to UIModalTransitionStyleFlipHorizontal.

Simon
  • 25,468
  • 44
  • 152
  • 266
  • Hey Simon,Thanks for the reply. But my question is about popovercontroller. Can we animate uipopovercontroller along with the view inside so as to show a model view.? – sniper Aug 12 '13 at 14:03
  • Not easily. But if you do as I suggested, you can flip over the view inside the popover. – Simon Aug 12 '13 at 14:14
  • It's actually only possible to present a view controller in a popover using the vertical cover transition. – E-Madd Nov 10 '13 at 06:30