views:

82

answers:

1

I would like to make popover view visible whenever user switches from landscape view to portrait view in UIsplitView of iPad. Although user can make it visible by clicking on bar button but I want this to be automated for portrait mode.

+1  A: 

Inside " -(BOOL) shouldAutorotateToInterfaceOrientation" method, check for the device orientation.If it is portrait, then Present the popover as you do for making it visible when user clicks bar button.

All the best.

GopiKrishnAn
and this should be implemented in which view controller exactly?
detail view controller of your split view controller. All the best.
GopiKrishnAn