Swipe from the bottom of the screen upward. Click the lock icon. Swipe down to complete
Click here for a complete guide.
Swipe from the top of the screen downward. You may need to swipe again to see all available options. Look for the "Auto Lock" option and tap it. Swipe up to complete.