Press and hold the Sleep/Wake button until the red slider appears.
Slide your finger across the slider to turn off the iPhone/iPad. To turn the iPhone/iPad back on, press and hold the Sleep/Wake button until the Apple logo appears.
If you can't turn off your iPhone/iPad, or if the problem continues, you may need to reset. A reset should only be done if turning the iPhone/iPad off and on doesn't resolve the problem.
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears.
Press and hold the Sleep/Wake button until the red slider appears, then press and hold the Home button until the App quits.