Hey everybody what's going on this is Caleb with Debb slopes dot com and welcome to the intro to accelerometer
target topic in this Target topic we're going to learn all about the accelerometers specifically and
how we can use it and it's data in iOS apps.
We're also going to learn how to use the accelerometer to do really cool things like adding parallax
effects images and table view cells even more so.
The first section of this course is going to be the basic intro to the accelerometer how to actually
use the accelerometer in its data.
And the second section like I said is where we're going to do some fancy stuff.
So let's go ahead.
I want to show you the app we're going to build in this first section it's super simple.
So check it out.
Here we go.
As you can see there are three labels one for the x value one for the y and one for the Z.
Of course those are the horizontal or vertical and whatever Z stands for values in a 3D space there
is X Y and Z for all three dimensions.
And so if I pick up my phone here you'll see that the values change depending on how I move my device
so if its length flat Z is pretty much a negative one and everything else is pretty much zero.
Now if I tilt it up watch what happens.
Why.
OK the vertical axis becomes one or negative one and the other has become 0.
If I tilt this way you'll see that Z becomes one.
If I tilted backward this way it becomes negative 1.
OK.
Just like that y and z and x all can perfectly work the way that we are expecting.
So let's go let's make y one.
If we go all the way down you'll see y becomes one and everything else becomes 0.
Super super cool guy.
So this is the app we're going to build that's going to help us to use the accelerometer to capture
data just like this.
So let's head over to the next video where we're going to build this super easy interface and then dive
right into the code.
Very shortly after so I'll see you there.
Let's head over now.