I have a scrollview and above some image. When the scrollview scrollView.contentOffset.x
is past a certain X my image above should animate.
I know how to animate. At the moment I'm doing this in the - (void)scrollViewDidScroll:(UIScrollView *)scrollView
method.
if (scrollView.contentOffset.x == 160) {
//animate Image
}
but sometimes it gets the 160, but other times it passes over the 160. How can I solve this ?