diff --git a/PDTSimpleCalendar/PDTSimpleCalendarViewController.m b/PDTSimpleCalendar/PDTSimpleCalendarViewController.m index cbd2c77..c3233ba 100644 --- a/PDTSimpleCalendar/PDTSimpleCalendarViewController.m +++ b/PDTSimpleCalendar/PDTSimpleCalendarViewController.m @@ -11,7 +11,7 @@ #import "PDTSimpleCalendarViewFlowLayout.h" #import "PDTSimpleCalendarViewCell.h" #import "PDTSimpleCalendarViewHeader.h" - +#import const CGFloat PDTSimpleCalendarOverlaySize = 14.0f; @@ -413,7 +413,7 @@ - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollection - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset { //We only display the overlay view if there is a vertical velocity - if ( fabsf(velocity.y) > 0.0f) { + if ( __tg_fabs(velocity.y) > 0.0f) { if (self.overlayView.alpha < 1.0) { [UIView animateWithDuration:0.25 animations:^{ [self.overlayView setAlpha:1.0];