If you create another window which has top priority, rotate device and hide this window then UI will be squeezed. Maybe try to use UIApplicationDidChangeStatusBarOrientationNotification to handle that bug and layout UI properly.