# Zmnavigationcontroller whose view is not in the window hierarchy!

**URL:** <https://devforum.zoom.us/t/zmnavigationcontroller-whose-view-is-not-in-the-window-hierarchy/3315>\
**Category:** iOS\
**Created:** [February 18, 2019, 8:39am UTC](https://devforum.zoom.us/t/zmnavigationcontroller-whose-view-is-not-in-the-window-hierarchy/3315 "2019-02-18T08:39:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sv001](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@sv001](https://devforum.zoom.us/u/sv001)\
**Post date:** [February 18, 2019, 8:39am UTC](https://devforum.zoom.us/t/zmnavigationcontroller-whose-view-is-not-in-the-window-hierarchy/3315/1 "2019-02-18T08:39:35Z")

</div>

Warning: Attempt to present \<ZMNavigationController: 0x150187400\> on \<myTloginScreen: 0x15083a000\> whose view is not in the window hierarchy!

1.I get this warning when I am waiting for the host to start the meeting,In my demo app I am getting this alert in a view -\> Screen shot attached IMG 3040

2.When I tried to integrate Zoom SDK in my existing app I get this warning

Warning: Attempt to present \<ZMNavigationController: 0x150187400\> on \<myTloginScreen: 0x15083a000\> whose view is not in the window hierarchy!

3.SDK I have integrated in my project

a.VIDYO SDK -\> [https://developer.vidyo.io/#/packages](https://developer.vidyo.io/#/packages)  
this sdk uses something related to rootviewcontroller

- (BOOL)application:(UIApplication \*)application didFinishLaunchingWithOptions:(NSDictionary \*)launchOptions  
{  
UIStoryboard \*storyBoard = [UIStoryboard storyboardWithName:@“iphone” bundle:nil];  
UIViewController \*initViewController = [storyBoard instantiateInitialViewController];  
[self.window setRootViewController:initViewController];  
return YES  
}

b.-(BOOL)application:(UIApplication \*)application handleOpenURL:(NSURL \*)url  
{

```
LoginWindow *guestAccess = (LoginWindow *)self.window.rootViewController;
guestAccess.guestPortal.text = URLvalue;
guestAccess.guestnameField.text =[kvpairs objectForKey:@"guestname"];
guestAccess.roomKeyField.text = [kvpairs objectForKey:@"key"];
guestAccess.roomPinField.text =[kvpairs objectForKey:@"pin"];
return YES;

```

}  
c.SWRevealViewController

> **[John-Lluch/SWRevealViewController](https://github.com/John-Lluch/SWRevealViewController)**
>
> A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right ! - John-Lluch/SWRevealViewController

4.if the host start the meeting I am able to join the meeting without any warning and everything works fine.

5.please provide suggestion how to show the alert without any warning in my project as shown in screen shot img\_3040.png

1. I saw similar post in your community none have a proper answer.

 ![img%203040](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/d00ebac7f2b7a9d316607933ffb1c9227cecf758.png)

---

<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:** [February 21, 2019, 1:40am UTC](https://devforum.zoom.us/t/zmnavigationcontroller-whose-view-is-not-in-the-window-hierarchy/3315/2 "2019-02-21T01:40:47Z")

</div>

Hi sv001,

Thank you very much for using Zoom SDK. Where did you receive this warning? In the system log or as an alert? Regarding No.5, are you looking for the solution to show the “Waiting Room” UI? If so, you can set “Allow Join Before Host” to false when you schedule a meeting.

Let me know if you have any questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![sv001](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@sv001](https://devforum.zoom.us/u/sv001)\
**Post date:** [June 20, 2019, 4:50am UTC](https://devforum.zoom.us/t/zmnavigationcontroller-whose-view-is-not-in-the-window-hierarchy/3315/3 "2019-06-20T04:50:09Z")

</div>

Hi Carson Chen,  
Thank you for your reply. It comes in system log.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 24, 2021, 8:41pm UTC](https://devforum.zoom.us/t/zmnavigationcontroller-whose-view-is-not-in-the-window-hierarchy/3315/4 "2021-08-24T20:41:00Z")

</div>

Marked as solved.

-Tommy
