# Some presented view controllers and alert are not showing when screen sharing

**URL:** <https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002>\
**Category:** iOS\
**Created:** [October 22, 2020, 9:26am UTC](https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002 "2020-10-22T09:26:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgeselveraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/georgeselveraj/32/4406_2.png) [@georgeselveraj](https://devforum.zoom.us/u/georgeselveraj)\
**Post date:** [October 22, 2020, 9:26am UTC](https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002/1 "2020-10-22T09:26:55Z")

</div>

Our applications root view controller is a tab bar with 5 tabs, each tab is UINavigationController. And if I share the screen the viewcontroller presented and alerts are not showing on screen sharing.

[self presentViewController:vc animated:YES completion:nil];

But if add that viewcontroller as root subview then it is visible

[[AppDelegate sharedInstance].window.rootViewController.view addSubview:vc.view];

What is the reason?

- SDK version: 5.0.1
- Device: iPhone 8Plus
- OS: 13.5.1

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [November 2, 2020, 9:12pm UTC](https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002/2 "2020-11-02T21:12:49Z")

</div>

Hello @georgeselveraj

Thank you for using the dev forum!

Unfortunately, I do not think there is an intentional design decision around this and is a side-effect of how the SDK controls navigation. Out of curiosity, have you used [[MobileRTC sharedRTC] setMobileRTCRootController:navController];?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![georgeselveraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/georgeselveraj/32/4406_2.png) [@georgeselveraj](https://devforum.zoom.us/u/georgeselveraj)\
**Post date:** [November 3, 2020, 10:14am UTC](https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002/3 "2020-11-03T10:14:52Z")

</div>

As my app’s root view controller is not a UINavigationcontroller. I didn’t set MobileRTCRootController.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [November 3, 2020, 7:13pm UTC](https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002/4 "2020-11-03T19:13:48Z")

</div>

Hey @georgeselveraj

That makes sense, thank you for the response.  
Is this causing issues for your application?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![georgeselveraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/georgeselveraj/32/4406_2.png) [@georgeselveraj](https://devforum.zoom.us/u/georgeselveraj)\
**Post date:** [November 5, 2020, 10:19am UTC](https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002/5 "2020-11-05T10:19:16Z")

</div>

No, I didn’t face any issue by not setting the MobileRTCRootController.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [November 6, 2020, 6:44pm UTC](https://devforum.zoom.us/t/some-presented-view-controllers-and-alert-are-not-showing-when-screen-sharing/34002/6 "2020-11-06T18:44:30Z")

</div>

Hey @georgeselveraj,

That is good to hear! If using

[[AppDelegate sharedInstance].window.rootViewController.view addSubview:vc.view];

becomes an issue, please let us know.

Thanks!  
Michael
