Skip to content

CGRectZero issues future exception #79

Open
rish2cool opened this Issue Dec 23, 2012 · 0 comments

1 participant

@rish2cool

[_hiddenPopoverController presentPopoverFromRect:CGRectZero inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];

The above line issues a warning "width,height cannot be zero. This will raise an exception in future."

I made this as:
[_hiddenPopoverController presentPopoverFromRect:CGRectMake(0, 0, 1, 1) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];
and everything works fine.

Please provide a better solution, if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.