ios - iPad doesn't detect shake-motion events -


the simulator detects shake-motion event without problem. when run app on physical device (ipad 2) - nothing happening. starting doubt myself if know how shake it...

i think have done necessarily:

-(bool)canbecomefirstresponder{     return yes; } 

calling becomefirstresponder on view;

and have implemented:

- (void)motionended:(uieventsubtype)motion withevent:(uievent *)event; - (void)motionbegan:(uieventsubtype)motion withevent:(uievent *)event; 

do have suggestions? why working on simulator , nothing happening on device?

this questions resembles situation: shake motion events not working doesn't me lot.

i have found , 'fixed' problem.

the device should set ipad or universal in order ipad detect shake motion. may obvious (but apparently have missed it) ... wanted produce sample application , have forgotten change default setting 'iphone' 'ipad'.

enter image description here


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -