# Custom UI for Chat in meeting

**URL:** <https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689>\
**Category:** iOS\
**Created:** [March 26, 2020, 6:48am UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689 "2020-03-26T06:48:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev-admin-demo](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@dev-admin-demo](https://devforum.zoom.us/u/dev-admin-demo)\
**Post date:** [March 26, 2020, 6:48am UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689/1 "2020-03-26T06:48:58Z")

</div>

Hello,  
I am using custom UI, and on a button click i want to open chat view with my custom UI how to achieve that.  
Currently i am using MobileRTC.shared().getMeetingService()?.presentMeetingChatViewController( **self** , userId: userId) by which chat view is visible, but i wanted my custom UI to render for chats.  
Thanks.

---

<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:** [March 27, 2020, 3:39am UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689/2 "2020-03-27T03:39:37Z")

</div>

Hi [dev-admin-demo](https://devforum.zoom.us/u/dev-admin-demo),

Thanks for the post. If you would like to use your own chat UI, you can draw your own UI and leverage the corresponding interfaces, such as:

- [https://zoom.github.io/zoom-sdk-ios/category\_mobile\_r\_t\_c\_meeting\_service\_07\_chat\_08.html](https://zoom.github.io/zoom-sdk-ios/category_mobile_r_t_c_meeting_service_07_chat_08.html)
- [https://zoom.github.io/zoom-sdk-ios/protocol\_mobile\_r\_t\_c\_meeting\_service\_delegate\_01-p.html#abd80735fd34f1aeda77398e74d8403b6](https://zoom.github.io/zoom-sdk-ios/protocol_mobile_r_t_c_meeting_service_delegate_01-p.html#abd80735fd34f1aeda77398e74d8403b6)

Calling the `presentMeetingChatViewController( self , userId: userId) ` will call our built-in chat component. We provide it for some users who do not want to developer their own chat UI.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![dev-admin-demo](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@dev-admin-demo](https://devforum.zoom.us/u/dev-admin-demo)\
**Post date:** [March 30, 2020, 4:58am UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689/3 "2020-03-30T04:58:41Z")

</div>

Hello @carson.zoom, thanks i integrated these.  
While calling this method - ms.sendChat(toUser: userId, withContent: txtMessage.text!)  
I received - **MobileRTCSendChatError(rawValue: 1)**

can you please guide what might have went wrong?

---

<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:** [March 31, 2020, 1:42am UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689/4 "2020-03-31T01:42:38Z")

</div>

Hi [dev-admin-demo](https://devforum.zoom.us/u/dev-admin-demo),

Thanks for the reply. The error code `rawValue: 1` means the send chat request was failed(obviously 🙂 ). We might need more info in order to help you. May I ask what did you do before calling the `sendChatToUser` interface(Or how to reproduce this error?). Or could you provide the SDK log for us to further investigate?

Thanks!

---

<div class="post-metadata">

**Author:** ![dev-admin-demo](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@dev-admin-demo](https://devforum.zoom.us/u/dev-admin-demo)\
**Post date:** [April 1, 2020, 5:22am UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689/5 "2020-04-01T05:22:19Z")

</div>

Thanks, its working 🙂

---

<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:** [April 3, 2020, 11:56pm UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689/6 "2020-04-03T23:56:03Z")

</div>

Thanks Carson! 🙂

Happy to hear it is working @dev-admin-demo.

-Tommy

---

<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, 8:16pm UTC](https://devforum.zoom.us/t/custom-ui-for-chat-in-meeting/9689/7 "2020-08-21T20:16:20Z")

</div>

Closed on August 21, 2020, 8:16pm UTC


