Skip to content

CGRectZero issues future exception #79

@rishabh-chowdhary

Description

@rishabh-chowdhary

[_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions