ios - How to measure continues shake in Objective C? -


i have measure continues shake in event application. accelerometer deprecated, using coremotion. using following code application.

- (void)motionended:(uieventsubtype)motion withevent:(uievent *)event {     if (event.type == uieventtypemotion && event.subtype == uieventsubtypemotionshake) {         nslog(@"shaking...");     } } 

its detect event when stop shake. there way through can detect continues shake event ?

thanks in advance.

can't use motionbegan method?

- (void)motionbegan:(uieventsubtype)motion withevent:(uievent *)event {     if (event.type == uieventtypemotion && event.subtype == uieventsubtypemotionshake) {         nslog(@"shaking...");     } } 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -