Re: iOS: getting the shakes
Re: iOS: getting the shakes
- Subject: Re: iOS: getting the shakes
- From: David Rowland <email@hidden>
- Date: Tue, 31 May 2011 21:02:49 -0700
That should be a subclass of UIResponder. You don't need a UIView, but I suppose you could use an existing one.
D
On May 31, 2011, at 8:55 PM, David Rowland wrote:
> 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
_______________________________________________
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