Headnix — Clip It!

Sunday, Jun 12, 2011 UIPopoverController and device orientation

You are required to take care of your own popover’s behavior when device orientation change. This is true when you present the popover using presentPopoverFromRect:inView:permittedArrowDirections:animated:.

“… if you presented the popover from a target rectangle in a view, the popover controller does not attempt to reposition the popover. In those cases, you must manually hide the popover or present it again from an appropriate new position. You can do this in the didRotateFromInterfaceOrientation: method of the view controller that you used to present the popover.” Please refer back to iOS documentation for detail.

Don’t forget that UIPopoverController is not a subclass of UIViewController in iOS 4 too.

If you are looking for Finger iPhone app, please go to Finger's site.

Copyright © 2007 Headnix. All rights reserved. Design by BeansBox.