# Can't join meeting when there is any presented view controller

**URL:** <https://devforum.zoom.us/t/cant-join-meeting-when-there-is-any-presented-view-controller/4849>\
**Category:** iOS\
**Tags:** faq\
**Created:** [July 3, 2019, 1:25am UTC](https://devforum.zoom.us/t/cant-join-meeting-when-there-is-any-presented-view-controller/4849 "2019-07-03T01:25:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason.liang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jason.liang/32/1203_2.png) [@jason.liang](https://devforum.zoom.us/u/jason.liang)\
**Post date:** [July 3, 2019, 1:25am UTC](https://devforum.zoom.us/t/cant-join-meeting-when-there-is-any-presented-view-controller/4849/1 "2019-07-03T01:25:26Z")

</div>

**Description**  
If I invoke `MobileRTC.shared().getMeetingService().joinMeeting(with: params)` in a presented view controller, I’ll get the follow error message.

```auto
Warning: Attempt to present <ZMNavigationController: 0x107a60400> on <MyViewController: 0x1080d2200> which is already presenting <UINavigationController: 0x10825b400>

```

How can I present the `ZMNavigationController` on a specific view controller?

**Which version?**  
4.3.1.47201.0322

**Smartphone (please complete the following information):**

- Device: iPhone 7
- OS: iOS 13
- Version 4.3.1.47201.0322

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [July 3, 2019, 6:48am UTC](https://devforum.zoom.us/t/cant-join-meeting-when-there-is-any-presented-view-controller/4849/2 "2019-07-03T06:48:14Z")

</div>

Hi jason.liang  
If app’s rootViewController is a UINavigationController,  
you need call [[MobileRTC sharedRTC] setMobileRTCRootController:navVC]; in AppDelegate  
If app’s rootViewController is not a UINavigationController, just ignore this step.  
you can refer to our sample code, and try it.  
Thanks for use our SDK.  
Murray Li

---

<div class="post-metadata">

**Author:** ![jason.liang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jason.liang/32/1203_2.png) [@jason.liang](https://devforum.zoom.us/u/jason.liang)\
**Post date:** [July 5, 2019, 7:53am UTC](https://devforum.zoom.us/t/cant-join-meeting-when-there-is-any-presented-view-controller/4849/3 "2019-07-05T07:53:42Z")

</div>

I think `setMobileRTCRootController` is exactly what I’m looking for. Thanks a lot. 🙇🏼‍♂️‍♂

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [July 5, 2019, 8:29am UTC](https://devforum.zoom.us/t/cant-join-meeting-when-there-is-any-presented-view-controller/4849/4 "2019-07-05T08:29:16Z")

</div>

I’m glad I could help you out.  
Have a nice day~

---

<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:31pm UTC](https://devforum.zoom.us/t/cant-join-meeting-when-there-is-any-presented-view-controller/4849/5 "2020-08-21T18:31:59Z")

</div>

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


