iOS: Fix the issue when the view that captures the touch input is not aligned properly after a change in the device orientation