nealyoung / NYSegmentedControl

Animated, customizable replacement for UISegmentedControl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crash when drag the segment button

zeptolee opened this issue · comments

the error info is:
Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathMoveToPoint(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat), file Paths/CGPath.cc, line 254.

crash in this line:
UIBezierPath *roundRectBezierPath = [UIBezierPath bezierPathWithRoundedRect:self.maskFrame
cornerRadius:self.maskCornerRadius];

Are you using the latest version 1.0.7?

The 1.0.7 version has fixed this issue.