In this lesson we'll talk about a very simple UI outlet called a stepper as I use to increment or decrement
the value.
And then based on that we can do all we can decide about what we want to do.
So let's go next quarter and see how are going to use it.
So Scott let me close this Commanche then single view application on what I call it a step up
step.
I'm going to go through this storyboard in the storyboard I'm going to have a stepper and then I'm going
to have a label that is going to show us the value of the stepper and I'm going to have a system for
the top mind HPR get rid of all the comments on in here say this is my step.
This is Raz label as always and this is the step action and remember it's value changed because the
value of it constantly changes.
I'm going to side step.
IT'S ACTION.
So that's about that.
I have two outlets and I have one function.
Let's go Word that and get everything we need.
So they call this cleaner and nicer.
And then in here I'm going to go ahead and say every time that a step action happens say red label the
text becomes
and has a strange string format.
What's the format.
What ever you find of that type float.
I have an extra dollar sign in my stepper that I knew.
Remember the value is a double which you can you know interchangeably used as a float.
So let's see the
now I highlighted that and I get this perfect and Art few really know simple things to remember is that
even to us that pays is often used to increment and decrement by one you are not constrained by that
figure.
This step can actually be point 1.
So every time it adds or add or subtract point 1 tweets and other thing that you might want to notice
is that you have the minimum and maximum.
So maybe you want to go between minus 10 to 10.
Another thing is there is an author repeats by that end here which means if you hold the body and it's
really cheap going up constantly on its own.
And if you don't have the auto repeat that doesn't happen and the continuous works very similar to very
similar to what we had in a slide there.
If it is continuous then it constantly goes up.
If it is not continuous It only does it when you let go of it.
Finally there is there is a drop in here that means if you increment beyond our maximum it will go to
the minimum.
Essentially it wraps itself around the circle and backwards.
If you do it go below minimum it goes to the maximum as if it's wrapping itself around a circle.
And Italian mind I think that's about it.
So that was all very simple.
You get the value you decide what you want to do with their values and you know you can choose how much
you want them to be.
And the steps can be done.
They don't have to be integers and the values are doubles or floats.
So with that in mind that's about that.
Let's move on.