- (void)scrollViewDidScroll:(UIScrollView*)scrollView{
staticfloatnewy =0;
staticfloatoldy =0;
newy= scrollView.contentOffset.y;
if(newy != oldy ) {
if(newy > oldy) {
NSLog(@"scrollViewDidScroll上");
}elseif(newy < oldy){
NSLog(@"scrollViewDidScroll下");
}
oldy = newy;
}
}
网友评论