How to set orientation onto rotate gesture

How to change orientation onto rotate gesture