Closed paul-piro closed 10 years ago
Did you close this because you found a workaround, or because the problem wasn't related to blur view?
if you use the badge on a blur view and hit home button and then reopen the app, blur view will try to recreate the subviews and somehow custom badge crashes in method -(void) drawRoundedRectWithContext:(CGContextRef)context withRect:(CGRect)rect
the rect object has infinite values
so my work around was to add in custom badge if(rect.size.width > 0 && rect.size.height > 0) { }
On March 22, 2014 at 6:27:44 PM, Nick Lockwood (notifications@github.com) wrote:
Did you close this because you found a workaround, or because the problem wasn't related to blur view?
— Reply to this email directly or view it on GitHub.
My app is crashing when im trying to add a custom badge (https://github.com/ckteebe/CustomBadge) inside a FXBlurView, i get this error: Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathAddArc(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat, bool), file Paths/CGPath.cc, line 279.
i guess this happens when it tries to restore the blur view, the custom badge cannot calculate it's coords