• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIViewController: not receiving motion events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UIViewController: not receiving motion events
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: NSInputStream Overflow?
  • Next by Date: Re: Compiling Core Data Mapping Model : Spurious Warning re 10.5 Deployment?
  • Previous by thread: NSInputStream Overflow?
  • Next by thread: Re: UIViewController: not receiving motion events
  • Index(es):
    • Date
    • Thread