UIViewController: not receiving motion events
UIViewController: not receiving motion events
- Subject: UIViewController: not receiving motion events
- From: Dave DeLong <email@hidden>
- Date: Tue, 07 Sep 2010 13:11:52 -0600
Hi everyone,
I've got a UIViewController subclass that controls a screen of content and a couple subviews. I'm trying to detect when the user shakes the device using UIResponder's motionEnded: method.
In a nutshell, nothing that I do ever causes this method to be triggered.
I've tried:
- [self becomeFirstResponder] in several different places
- Setting the delegate of the UIAccelerometer to self
- Walking the view hierarchy to confirm that self really is first responder (which it is)
None of these work, and my motionEnded: method never gets called.
Any ideas why this would be?
Thanks,
Dave
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden