Reputation: 2091
I am trying to create create an animation to slide a view over other and if reaches certain point, it should invoke an action. Look at the screen shots from amazon. amazon pic 1
Upvotes: 1
Views: 1575
Reputation: 1607
You can use UIView's animation block...
[UIView animateWithDuration:0.3 animations:^{
//Do your stuff here...
} completion:^(BOOL isFinished){
}];
Upvotes: 1
Reputation: 8351
As per your requirement there are some ready to use control on github you have to more customize and achieve above requirement.
Please check below hand controls :
https://xcodenoobies.blogspot.in/2011/03/how-to-do-slide-to-unlock.html
https://github.com/mattlawer/MBSliderView
https://www.cocoacontrols.com/controls/slide-to-unlock
Hope this will helps.
Upvotes: 1