- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
if (scrollView !=self.MyCollectionDetailsTable) {
return;
}
UIColor *color=kUIColorFromRGBWithAlapha(232, 91, 85, 1);
UIColor *color1=[UIColor whiteColor];
CGFloat offset=scrollView.contentOffset.y;
if (offset<0) {
_RedFocusBtn.layer.borderColor=kUIColorFromRGBWithAlapha(147, 147, 147, 1).CGColor;
[_RedFocusBtn setTitleColor:kUIColorFromRGBWithAlapha(147, 147, 147, 1) forState:UIControlStateNormal];
[_BackBtn setImage:[UIImage imageNamed:@"heifanhui"] forState:UIControlStateNormal];
self.RedView.backgroundColor = [color colorWithAlphaComponent:0];
self.RedTitle.textColor= [color1 colorWithAlphaComponent:0];
}else {
CGFloat alpha=1-((65*kMainNewScreenScale-offset)/65*kMainNewScreenScale);
self.RedView.backgroundColor=[color colorWithAlphaComponent:alpha];
self.RedTitle.textColor=[color1 colorWithAlphaComponent:alpha];
_RedFocusBtn.layer.borderColor=[UIColor whiteColor].CGColor;
[_RedFocusBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[_BackBtn setImage:[UIImage imageNamed:@"denglufanhui"] forState:UIControlStateNormal];
}
}