mattgemmell/MGSplitViewController — pull request #65 by hborders (2012-07-13 21:35:17+00:00)
Title: Avoid UIPopoverController warning on iOS 5.1.

On iOS 5.1, passing a CGRectZero here produces this following ominous message:
-[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:]: the rect passed in to this method must have non-zero width and height. This will be an exception in a future release.

This workaround was tested thusly:
On iOS 4.3, CGRectZero leaves a popover afterimage before rotation, so does the code below
On iOS 5.0, CGRectZero leaves a popover afterimage before rotation, the code below does not
On iOS 5.1, CGRectZero leaves a popover afterimage before rotation, so does the code below
Basically, this hack performs slightly better than the CGRectZero hack, and does not cause an ominous warning.