1

I am using Titanium Appcelerator framework.

I want to create a button/view which can display 'delete' button in the corner when touch is pressed and held for long time. I have tried with Animation and Transformation but I am not getting it perfectly done. May this be due to false reference to variables or objects.

Please check my code here: http://pastie.org/3525424

But it's not working. Can anyone please let me know about the issue..?

Paresh Thakor
  • 1,795
  • 2
  • 27
  • 47

2 Answers2

2

As vignesh suggested add a UILongPressGesture recognizer and use this code to give wobbling effect.. this should get you started , you will have to play with the timing of animation though.

Community
  • 1
  • 1
Ankit Srivastava
  • 12,347
  • 11
  • 63
  • 115
0

You will have to use UILongPressGesture Recognizer registered . You can add a button in the gesture's event. Apple documentation link for long press gesture.

Vignesh
  • 10,205
  • 2
  • 35
  • 73