Detecting rotation by using NSNotificationCenter