Open g0re opened 9 years ago
In WYPopoverController.m, drawRect:
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
0
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+.
In WYPopoverController.m,
drawRect
:If innerRect.size.width or innerRect.size.height is
0
, the code crashes when creatingUIBeizerPath
This happens to me only when testing the code in iOS8 + iPhone 6+.