• 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: Graham Cox <email@hidden>
  • Date: Wed, 01 Jun 2011 14:04:37 +1000

On 01/06/2011, at 1:55 PM, David Rowland wrote:

> 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.


Hmm, thanks but it's still not called.

I have a subclass of UIView, and also a subclass of UIViewController. The controller is part of the responder chain after the view, so it *should* be called whether the view or the controller implements the method. Other events such as touches are passed along as expected, which is why I wondered if there's something else needed to enable shake events (e.g. a specific key in the info.plist).

--Graham


_______________________________________________

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

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