清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
#define offsety scrollView.contentOffset.y
#define endoffsety 153.0f
-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
if (scrollView.tag == 1001) {
if ((offsety > 0)&&(offsety<153)) {
//更加距离变化计算,改变属性的方法
[self AnnimationWithProperty:offsety];
}
else if (offsety < 0){
//更加距离变化计算,改变属性的方法
[self AnnimationWithProperty:0];
}
else if ((offsety> 153)&&(_frontView.top > -153)) {
//更加距离变化计算,改变属性的方法
[self AnnimationWithProperty:endoffsety];
}
}
}