# iOS: App broken until screen Locked/Unlocked

**URL:** <https://forums.unrealengine.com/t/ios-app-broken-until-screen-locked-unlocked/481847>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 13, 2021, 3:33pm UTC](https://forums.unrealengine.com/t/ios-app-broken-until-screen-locked-unlocked/481847 "2021-04-13T15:33:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pheeeeno](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pheeeeno](https://forums.unrealengine.com/u/pheeeeno)\
**Post date:** [April 13, 2021, 3:33pm UTC](https://forums.unrealengine.com/t/ios-app-broken-until-screen-locked-unlocked/481847/1 "2021-04-13T15:33:23Z")

</div>

I am trying to build an app for iOS, and I can successfully get it on my phone through testflight. But the “constrain aspect ratio” seems to break when I open the app. The game only runs correctly after I lock and unlock the iPhone screen. Can anyone explain why this might happen or what happens to the code when the phone screen is locked and unlocked? Thanks.
