Re: iOS: getting the shakes
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