We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using FXPageControl with iOS 9 with CGPath:
self.pagecontrol.numberOfPages = self.maxIndex; self.pagecontrol.currentPage = self.index; int widthPageControl = (self.pagecontrol.bounds.size.width - ((self.maxIndex - 1) * SPACING_PAGE_CONTROL) ) / self.maxIndex; CGMutablePathRef path = CGPathCreateMutable(); CGPathAddRect(path, NULL, CGRectMake(0, 0, widthPageControl, HEIGHT_PAGE_CONTROL)); CGPathCloseSubpath(path); self.pagecontrol.dotShape = path; self.pagecontrol.dotSize = widthPageControl; self.pagecontrol.dotColor = [UIColor blueColor]; self.pagecontrol.dotSpacing = SPACING_PAGE_CONTROL; self.pagecontrol.selectedDotShape = path; self.pagecontrol.selectedDotSize = widthPageControl; self.pagecontrol.selectedDotColor = [UIColor orangeColor]; CGPathRelease(path);
The interesting thing is the first CGPath is misplaced and diving in the code I found this is the problem:
CGFloat offset = (_dotSize + _dotSpacing) * i + _dotSize / 2;
so changing this to:
CGFloat offset = (_dotSize + _dotSpacing) * i;
Why do you need all the time _dotSize / 2?
Images with _dotSize / 2;
_dotSize / 2;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using FXPageControl with iOS 9 with CGPath:
The interesting thing is the first CGPath is misplaced and diving in the code I found this is the problem:
so changing this to:
Why do you need all the time _dotSize / 2?
Images with
_dotSize / 2;
The text was updated successfully, but these errors were encountered: