Skip to content

Conversation

@hborders
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant