How to detect with or when user turns iPad from vertical position to horizontal or from horizontal to vertical?

Edit
Report