Try to support device orientation change on iOS