Sensing movement with the accelerometer input
In this recipe we will learn how to use the features of the
accelerometer events of the iOS device.
Create a new Single View Application, and name it
To begin, follow these simple steps as outlined:
- Select the
AccelGyroExample project from the Project Navigator.
- Then select your project from under the TARGETS group.
- Select the Build Phases tab.
- Expand the Link Binary With Libraries disclosure triangle.
- Click on the + button and select the CoreMotion.framework from the list.
- Then click on the Add button to add the framework to your project.
- Our next step is to ...