Gesture event triggers only once with iPhone SDK 4.0
When running the KitchenSink on simulator with iPhone SDK 4.0 and on the device with iOS 4.0, the shake example does only work once.
When opening the shake example window, the first shake gesture triggers the alert dialog box. After closing the alert dialog, there is no way to get the alert again.
It works properly on an iPhone with iOS 3.2 installed.
Does anybody have an idea how to work around this?
5 Answers
-
Am facing the same problem.
In fact its triggered twice at the same time.
var k=0;
Ti.Gesture.addEventListener('shake',function(e){
k++;
alert(k);});
This alerts 1 and 2 in a single shake.
And after that it wont alert anymore :(
Any help?
regards
Anshu Prateek -
i have the same issue.,
it detects the first shake but does not respond from second shake onwards..
Any help???
-
I have see the same problem.
See bug reports here:
-
same issue reported here: http://developer.appcelerator.com/question/82051/accelerometer-eventlistener-wont-re-initialize-after-window-navigation
thanks for the info on the bug report.
-
same issue reported here: http://developer.appcelerator.com/question/82051/accelerometer-eventlistener-wont-re-initialize-after-window-navigation
thanks for the info on the bug report.