//
// WNCalendarCollectionLayout.h
// Calendar
//
// Created by 付国良 on 16/3/22.
// Copyright © 2016年 日历. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WNCalendarCollectionLayout : UICollectionViewFlowLayout
@property (nonatomic, assign) BOOL isSuspend;
@end
// Calendar
//
// Created by 付国良 on 16/3/22.
// Copyright © 2016年 日历. All rights reserved.
//
#import "WNCalendarCollectionLayout.h"
@implementation WNCalendarCollectionLayout
- (instancetype)init
{
self = [super init];
if (self){
}
return self;
}
- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
{
NSMutableArray *answer = [[super layoutAttributesForElementsInRect:rect] mutableCopy];
UICollectionView * const cv = self.collectionView;
CGPoint const contentOffset = cv.contentOffset;
NSMu