samedi 25 avril 2015

Finding the current Accelerometer values for an iPhone


I'm trying to get a label to rotate based on the tit of the device in an app I'm making in swift. Given that I should be fine with rotating the label, does anybody know how to find the current accelerometer values of an iPhone? For example, getting it to print its x, y and z values once every second or so.

Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire