iOS UIMotionEffect Question

I am trying to find out the correct Class that controls the movements of an iOS device ie. moving your phone/ipad to control say a car game. A few questions if you don’t mind:

  1. Is this the correct class for this?
  2. Did Xojo implement this class?
  3. Has anyone tried this yet w/ Xojo?

Thanks!

[quote=163928:@Mike Cotrone]I am trying to find out the correct Class that controls the movements of an iOS device ie. moving your phone/ipad to control say a car game. A few questions if you don’t mind:

  1. Is this the correct class for this?[/quote]
    https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAccelerometer_Class/

Nope.

Not to my knowledge, there has not been a declare implementation yet.

Thanks Michel I appreciate the help since I am just getting into iOS now.

Note: the online docs show UIAccelerometer deprecated in iOS 5. I am looking at Core Motion to see :slight_smile:

Update: CoreMotion replaces it
http://stackoverflow.com/questions/14669026/what-replaces-the-ios-5-deprecated-accelerometerdidaccelerate

Can someone explain why it’s not possible to use CoreMotion with Xojo ?
I’m trying to measure movements (distance and direction) of an iOS device but the Accelerator data is not enough…

Thanks !

Its not possible to use CoreMotion because the compiler currently does not allow us to add frameworks to link against. Since all declares into Cocoa/UIKit/CoreMotion/etc (anything Apple which uses the selector keyword) are soft, they are not linked to at compile time, so we cannot link to the CoreMotion framework to use its classes.