Mithra Singam
Mithra Singam

Reputation: 2091

How to create slide animation in iOS objective c to slide a view over other like in amazon ios app

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

Upvotes: 1

Views: 1575

Answers (2)

Harish Pathak
Harish Pathak

Reputation: 1607

You can use UIView's animation block...

[UIView animateWithDuration:0.3 animations:^{

       //Do your stuff here...

    } completion:^(BOOL isFinished){

    }];

Upvotes: 1

CodeChanger
CodeChanger

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

Related Questions