# Half white screen when rotate to landscape ionic 4 IOS

**URL:** <https://forum.ionicframework.com/t/half-white-screen-when-rotate-to-landscape-ionic-4-ios/187862>\
**Category:** ionic-v3\
**Created:** [April 22, 2020, 4:17pm UTC](https://forum.ionicframework.com/t/half-white-screen-when-rotate-to-landscape-ionic-4-ios/187862 "2020-04-22T16:17:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujanqode](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sujanqode](https://forum.ionicframework.com/u/sujanqode)\
**Post date:** [April 22, 2020, 4:17pm UTC](https://forum.ionicframework.com/t/half-white-screen-when-rotate-to-landscape-ionic-4-ios/187862/1 "2020-04-22T16:17:57Z")

</div>

I am building an IONIC 4 app in portrait mode. I have forced the app to stay in portrait mode in config.ts file and everything works fine in both android and IOS

On some pages, I am using camera-preview plugin to customize the camera screen. It needed to be in landscape mode so used Screen Orientation plugin to force it landscape on that page and start the camera.

```auto

ngOnInit() {
    this.platform.ready().then(()=>{
      if(this.platform.is('cordova')){
        this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE);
        this.cameraPreview.onBackButton().then(()=>{
          console.log('Back button pushed');
          this.close();
        })
        // this.presentAlertConfirm()
        //make short delay of 500ms to start the camera preview
        setTimeout(()=>{
          this.initCameraPreview()
        },500)
      }
    })
  }

```

Works fine in android.

But in IOS, half of the screen is covered in white as in the image below.

 ![1587562373202](https://global.discourse-cdn.com/ionicframework/original/3X/f/0/f013b9a81c1ea03f6f4c07667d9339af2ea088cb.jpeg)

Please help me out to resolve this issue

---

<div class="post-metadata">

**Author:** ![mous12](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mous12](https://forum.ionicframework.com/u/mous12)\
**Post date:** [November 30, 2020, 8:00pm UTC](https://forum.ionicframework.com/t/half-white-screen-when-rotate-to-landscape-ionic-4-ios/187862/2 "2020-11-30T20:00:23Z")

</div>

hi @sujanqode did you manage to solve it?? I m having the same issue
