1.targetContentOffsetForProposedContentOffset
//proposedContentOffset 内容视图的偏移量 velocity速度
//offsetAdjustment 应该调整的位置,设为最大为了循环取出最小
//horizontalCenter 内容的最左边到视图中心的位置
//targetRect 当前看到窗口中得边框
//layoutAttributes 视图中每一个cell的布局属性包含长宽等
//contentInset 内容视图在frame中得偏移上下左右等
//CGFloat cellW = (kDeviceWidth- CELL_MARGIN * (CELL_ROW + 1)) / CELL_ROW;
//UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
//
//layout.itemSize = CGSizeMake(cellW, cellW);// 定义cell的size
//layout.minimumInteritemSpacing = CELL_MARGIN;// 定义左右cell的最小间距
//layout.minimumLineSpacing = CELL_LINE_MARGIN;// 定义上下cell的最小间距
//layout.footerReferenceSize = CGSizeMake(kDeviceWidth, 50);// 定义headview的size
//layout.sectionInset = UIEdgeInsetsMake(5, 4, 5, 4);组内得cell显示区域内容的缩进
- (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedCo