# After quit from meeting Lock orientation is disable for system status bar

**URL:** <https://devforum.zoom.us/t/after-quit-from-meeting-lock-orientation-is-disable-for-system-status-bar/2991>\
**Category:** Meeting SDK\
**Created:** [January 17, 2019, 8:12am UTC](https://devforum.zoom.us/t/after-quit-from-meeting-lock-orientation-is-disable-for-system-status-bar/2991 "2019-01-17T08:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [January 17, 2019, 8:12am UTC](https://devforum.zoom.us/t/after-quit-from-meeting-lock-orientation-is-disable-for-system-status-bar/2991/1 "2019-01-17T08:12:48Z")

</div>

I want to lock phone as vertical in my app when I not in meeting. When user is in meeting I unlock the orientation status. Before I join meeting it works well, once I join and quit from meeting, system status bar can’t be locked. the main view is still ok.  
please review the attachment video from [issue video](https://sy-tools.oss-cn-beijing.aliyuncs.com/rotate.mp4)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [January 17, 2019, 9:13pm UTC](https://devforum.zoom.us/t/after-quit-from-meeting-lock-orientation-is-disable-for-system-status-bar/2991/2 "2019-01-17T21:13:23Z")

</div>

Hi guan\_bj,

Thanks for using Zoom SDK and thanks for the video to describe the issue. To resolve this issue, you will need to implement and override the following method to reset the screen orientation after the scenario you performed:

```
-(UIInterfaceOrientationMask)supportedInterfaceOrientations {
   if (isTheDeviceThatForcedChangedOrientation) {
       return UInterfaceOrientationMaskPortrait;
   }
   return UInterfaceOrientationMaskAll;
 }

```

You can refer to Apple’s documentation for further detail of this method: [https://developer.apple.com/documentation/uikit/uiviewcontroller/1621435-supportedinterfaceorientations](https://developer.apple.com/documentation/uikit/uiviewcontroller/1621435-supportedinterfaceorientations)

Hope this helps. Thanks.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:08pm UTC](https://devforum.zoom.us/t/after-quit-from-meeting-lock-orientation-is-disable-for-system-status-bar/2991/3 "2020-08-21T18:08:59Z")

</div>

Closed on August 21, 2020, 6:08pm UTC


