Warning: Attempt to present ZMNavigationController on myController whose view is not in the window hierarchy!


#1

I downloaded https://github.com/zoom/sample-app-swift and it works well with me. 

When trying to integrate it with our own app. We added the libraries and it is well, but when run join meeting, the output runs well but the screen on the video call not opens and I got this message in output 

Warning: Attempt to present <ZMNavigationController: 0x7fa64d8c5c00> on <ConsulTrust.InitVC: 0x7fa64bf0dd80> whose view is not in the window hierarchy!

 

Hope to solve this issue. Thanks in advance.


#2

Hi Eman,

how do you present the meeting view? Can I get more details? 

Could you try remove the following code in your project:

    **[[**MobileRTC sharedRTC] setMobileRTCRootController:navVC];

Note: if your app is not based on a UINavigationController as root view controller, the above code should not be added into your project.

Best


#3

Hi wel Guo, 

Our own app contains lot of screens and the app’s first screen not based on UINavigationController others based.

The meeting View is in center of the app, meaning that the user opens home then a screen that contains the join meeting button. 

as our app is swift , either I added this line **[[****MobileRTC sharedRTC] setMobileRTCRootController:navVC];  **in swift or not it add, the app gives me the same warning and the video not opens 

Warning: Attempt to present <ZMNavigationController: 0x7fc9ca9d2e00> on <ConsulTrust.InitVC: 0x7fc9c940d0c0> whose view is not in the window hierarchy!