ui rotating without crashing on simulator