0

I want to add animation to a button.when a button is touched it should shake for some duration. Then whatever method is linked with it should get call.

User97693321
  • 3,348
  • 7
  • 44
  • 69
Shabbir Panjesha
  • 439
  • 1
  • 4
  • 10

1 Answers1

3

Start with this for the animation:

UIView shake animation

Then implement animationDidStop:finished: to perform some action when the animation has finished.

Best regards.

Community
  • 1
  • 1
Matt Long
  • 24,295
  • 4
  • 72
  • 99