How to lock rotation in iOS?

Latest iOS versions like iOS 8 and iOS 7, rotation lock feature is moved to Control Center. If you enable rotation lock option, it will prevent your iPhone…