Note that there are some explanatory texts on larger screens.

plurals
  1. POShake Gesture isn't working in iPhone 4, Don't know why...?
    primarykey
    data
    text
    <p>I have developed an iPhone app which uses Shake Gesture to rotate the wheel of picker view. I am using IOS 3.2 as base sdk. I have a iPhone 3GS which is updated with IOS 4.0, when I execute my App in this 3GS phone it is working properly with Shake Gesture. but when I run it in iPhone 4 the Shake Gesture doesn't respond. I am not getting the reason of it, if anybody is having the Solotion please help me out... Below i am providing a code part which i hv used to handle Shake Gesture....</p> <pre><code>#define kRowMultiplier 20 #define kAccelerationThreshold 2.2 #define kUpdateInterval (1.0f/10.0f) (void) accelerometer:(UIAccelerometer*)accelerometer didAccelerate: UIAcceleration*)acceleration{ if (fabsf(acceleration.x) &gt; kAccelerationThreshold || fabsf(acceleration.y) &gt; kAccelerationThreshold || fabsf(acceleration.z) &gt; kAccelerationThreshold) { [progressView startAnimating]; if (! isSpinning) { if(!btnRegion.selected &amp;&amp; !btnFlavor.selected &amp;&amp; !btnPrice.selected) { // Need to have it stop blurring a fraction of a second before it stops spinning so that the final appearance is not blurred. [self stopBlurring]; wheelingTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(shufflePickerView) userInfo:nil repeats:YES]; } else { [self shufflePickerView]; [self performSelector:@selector(stopBlurring) withObject:nil afterDelay:2.7]; } } isSpinning = YES; } } </code></pre> <p>is sumthing wrong in code... Can I test it by Simulator on IOS 4.0 or i need to hv a iPhone 4 only...?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload