You can check out this tutorial for an animation of the form:
Uiview-tutorial-for-ios-how-to-use-uiview-animation
To achieve the effect you are looking for, you can use something like this:
ScrollView delegation method for scroll detection (if your only paging)
-(void)scrollViewDidScroll:(UIScrollView *)scrollView { UIView* subView = [scrollView.subviews lastObject];
This will lead to a smooth disappearance of your spy and in the interval of 2.0 seconds. You should read a little about these blocks of animation, although they can be a bit complicated. For example, I had a nest of the second block of animation after the first completion, because the actual code inside them is processed immediately, and the animation just happens on the side of the view.
Hope this helps!
source share