iPhone - too sensitive rotation detection
<p>I have a UIActionSheet based class. The ActionSheets created by this class are designed to vanish if a device orientation rotation is detected.</p>

<p>So, when this class begins I have</p>

<pre><code>[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotate:) name:UIDeviceOrientationDidChangeNotification object:nil];
</code></pre>

<p>and on the didRotate: i have the dismiss, that sends the ActionSheet away.</p>

<p>The only little, tiny problem is this: any vibration makes the actionSheet dismiss. Even tapping with a little bit more strength will make the popoup dismiss. Even if you are typing inside the actionSheet.</p>

<p>I don't have any accelerometer or coremotion enabled.</p>

<p>Any clues?</p>

<p>thanks</p>

<hr>

<p><strong>EDIT</strong> </p>

<p>I have discovered that the problem is that initially the orientation is being reported as UIDeviceOrientationUnknown and the trepidation makes it report the correct orientation. As UIDeviceOrientationUnknown is different from the correct orientation, this is seen as a rotation change... </p>

<p>Now I am doomed.</p>
