下拉刷新背景色设置
2017-12-19 本文已影响10人
然亦伞
UIView *bgView = [[UIView alloc] initWithFrame:CGRectOffset(self.collectionView.bounds, 0, -self.collectionView.bounds.size.height)];
bgView.backgroundColor = kMainColorOfApp;
[self.collectionView insertSubview:bgView atIndex:0];