Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGRectZero issues future exception #79

Open
rishabh-chowdhary opened this issue Dec 23, 2012 · 0 comments
Open

CGRectZero issues future exception #79

rishabh-chowdhary opened this issue Dec 23, 2012 · 0 comments

Comments

@rishabh-chowdhary
Copy link

[_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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant