# setToolColor does not work

**URL:** <https://devforum.zoom.us/t/settoolcolor-does-not-work/19941>\
**Category:** iOS\
**Created:** [June 2, 2020, 8:41am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941 "2020-06-02T08:41:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LEA](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lea/32/9667_2.png) [@LEA](https://devforum.zoom.us/u/LEA)\
**Post date:** [June 2, 2020, 8:41am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/1 "2020-06-02T08:41:46Z")

</div>

Hi…，When using the zoom SDK, I encountered some problems and hope to get some help.

I use the following code to set the color of the text, I found that it does not work. The color of MobileRTCAnnoTool\_Text is not the one I set.

```
MobileRTCAnnotationService *annoService = [[MobileRTC sharedRTC] getAnnotationService];
if (!annoService) {
    return;
}
MobileRTCAnnotationError ret = [annoService setToolColor:[UIColor yellowColor]];
NSLog(@" == %d",ret);

UIColor * textColor = [annoService getToolColor:MobileRTCAnnoTool_Text];
if (![textColor isEqual:[UIColor yellowColor]]) {
    NSLog(@" does not work ");
}
```

---

<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:** [June 4, 2020, 7:03am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/2 "2020-06-04T07:03:57Z")

</div>

Hi @LEA,

Thanks for using Zoom SDK. The `setToolColor` is an async action, please have some timeout in between. You may refer to the implementation here: [https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/AnnoFloatBarView.m#L286](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/AnnoFloatBarView.m#L286)

Thanks!

---

<div class="post-metadata">

**Author:** ![LEA](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lea/32/9667_2.png) [@LEA](https://devforum.zoom.us/u/LEA)\
**Post date:** [June 4, 2020, 10:47am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/3 "2020-06-04T10:47:19Z")

</div>

Hi, thanks for the reply.

After modifying the code, it still does not work, it is effective for `MobileRTCAnnoTool_Pen `, but not for `MobileRTCAnnoTool_Text `. I ran the demo and found that it is also invalid, and only invalid for `MobileRTCAnnoTool_Text ` .

 ![20200604190005](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/c8d3b0026ef5fc20bbe9daf79d06584ff022d283.jpeg)

---

<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:** [June 6, 2020, 12:24am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/4 "2020-06-06T00:24:15Z")

</div>

Hi @LEA,

Thanks for the reply. Currently we do not have the interface to enter text in annotation, so setting the color won’t have any effect. Is the text shown on the screen annotated from other clients? It is not possible to change the color for other participants.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![LEA](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lea/32/9667_2.png) [@LEA](https://devforum.zoom.us/u/LEA)\
**Post date:** [June 8, 2020, 1:58am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/5 "2020-06-08T01:58:37Z")

</div>

Hi, thanks for the reply.

I found MobileRTCAnnoTool\_Text in MobileRTCAnnoTool and used it in the demo. Do you mean that we cannot modify the tool color of MobileRTCAnnoTool\_Text ?

![20200608094703](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/323ba65bd13176f822457293fb936b958d5f4d73.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:** [June 10, 2020, 7:33am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/6 "2020-06-10T07:33:15Z")

</div>

Hi @LEA,

Thanks for the reply. That is one of the values in the MobileRTCAnnoTool. But we do not have an interface to be able to enter text on your side while annotating. And you could not modify the color of other participants.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![LEA](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lea/32/9667_2.png) [@LEA](https://devforum.zoom.us/u/LEA)\
**Post date:** [June 11, 2020, 1:16am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/7 "2020-06-11T01:16:47Z")

</div>

Thanks for the reply, i got it .

---

<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:** [June 17, 2020, 6:37am UTC](https://devforum.zoom.us/t/settoolcolor-does-not-work/19941/8 "2020-06-17T06:37:48Z")

</div>

Closed on June 17, 2020, 6:37am UTC


