1

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

amazon pic 2

Mithra Singam
  • 1,905
  • 20
  • 26

2 Answers2

1

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.

CodeChanger
  • 7,953
  • 5
  • 49
  • 80
1

You can use UIView's animation block...

[UIView animateWithDuration:0.3 animations:^{

       //Do your stuff here...

    } completion:^(BOOL isFinished){

    }];
Harish Pathak
  • 1,567
  • 1
  • 18
  • 32