Glow-Inc / GLCalendarView

A fully customizable calendar view acting as a date range picker
MIT License
855 stars 106 forks source link

iPhone 6 Plus: White stripes on selected range #7

Closed Hordaric closed 9 years ago

Hordaric commented 9 years ago

White stripes appear on selected range when running on iPhone 6 Plus. Please see attached screenshot.

screen shot 2015-09-16 at 10 49 26 am
ltebean commented 9 years ago

This is because (screenWidth - padding * 2) / 7 is not an integer. You can fix it by:

NSInteger screenWidth = [UIScreen mainScreen].bounds.size.width;
CGFloat paddingAll = screenWidth % 7 + 7;
[GLCalendarView appearance].padding = paddingAll / 2;