Skip to content

iOS8 + iPhone 6+: crash in drawRect #65

Description

@g0re

In WYPopoverController.m, drawRect:

CGRect innerRect = CGRectMake(CGRectGetMinX(rect), CGRectGetMinY(rect) + barHeight, CGRectGetWidth(rect) , CGRectGetHeight(rect) - barHeight);

If innerRect.size.width or innerRect.size.height is 0, the code crashes when creating UIBeizerPath

UIBezierPath* inRoundedRectPath = [UIBezierPath bezierPathWithRoundedRect:CGRectInset(innerRect, 0.5, 0.5) cornerRadius:cornerRadius];

This happens to me only when testing the code in iOS8 + iPhone 6+.

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