Detection Rotation.

Detecting Rotation by using NSNotificationCenter.
Rotation Detection.

 using NSNotificationCenter.