• 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
Re: iOS: getting the shakes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS: getting the shakes


  • Subject: Re: iOS: getting the shakes
  • From: David Rowland <email@hidden>
  • Date: Tue, 31 May 2011 20:55:45 -0700

It's an iOS device, not a computer. No mouse, no keyboard.

I think you want,

- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event

You make a subclass of UIView, instantiate it, and implement the above within that subclass.

David





On May 31, 2011, at 8:42 PM, Eli Bach wrote:

>
> On May 31, 2011, at 9:35 PM, Graham Cox wrote:
>
>> In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, trying to receive shake events. But it's never called (iOS simulator, version 4.3).
>>
>> Is there something else I need to do to specifically enable delivery of shake events? I have scoured the docs but didn't find anything relevant.
>>
>> --Graham
>
> Well, how hard did you shake your computer?  You have to actually shake the computer, as neither your mouse nor your keyboard have a motion sensor.
>
> Eli
>
> _______________________________________________
>
> 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

_______________________________________________

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: iOS: getting the shakes
      • From: Graham Cox <email@hidden>
    • Re: iOS: getting the shakes
      • From: David Rowland <email@hidden>
References: 
 >iOS: getting the shakes (From: Graham Cox <email@hidden>)
 >Re: iOS: getting the shakes (From: Eli Bach <email@hidden>)

  • Prev by Date: Re: iOS: getting the shakes
  • Next by Date: Re: iOS: getting the shakes
  • Previous by thread: Re: iOS: getting the shakes
  • Next by thread: Re: iOS: getting the shakes
  • Index(es):
    • Date
    • Thread