# Drawinto iOSLabel

**URL:** <https://forum.xojo.com/t/drawinto-ioslabel/58861>\
**Category:** iOS\
**Created:** [November 17, 2020, 12:23pm UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861 "2020-11-17T12:23:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [November 17, 2020, 12:23pm UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861/1 "2020-11-17T12:23:03Z")

</div>

Is there a way to draw into an iOSLAbel ? I need to draw border with round angle.

---

<div class="post-metadata">

**Author:** ![Christoph\_Emrich](https://forum.xojo.com/user_avatar/forum.xojo.com/christoph_emrich/32/1727_2.png) [@Christoph\_Emrich](https://forum.xojo.com/u/Christoph_Emrich)\
**Post date:** [November 17, 2020, 1:09pm UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861/2 "2020-11-17T13:09:42Z")

</div>

Rounded corners for the label can be done with `SetCornerRadiusXC` from @Jeremie_L iOS Design Extensions: [https://github.com/jkleroy/iOSDesignExtensions](https://github.com/jkleroy/iOSDesignExtensions)

---

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [November 17, 2020, 1:30pm UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861/3 "2020-11-17T13:30:15Z")

</div>

I need to round only top corners not bottom corners

---

<div class="post-metadata">

**Author:** ![Christoph\_Emrich](https://forum.xojo.com/user_avatar/forum.xojo.com/christoph_emrich/32/1727_2.png) [@Christoph\_Emrich](https://forum.xojo.com/u/Christoph_Emrich)\
**Post date:** [November 17, 2020, 1:42pm UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861/4 "2020-11-17T13:42:23Z")

</div>

Does this help? [Rounded Corners](https://forum.xojo.com/t/rounded-corners/54587)

---

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [November 18, 2020, 9:09am UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861/5 "2020-11-18T09:09:51Z")

</div>

It helps but there is no drawinto method in iOSLabel. I think I should use canvas.

---

<div class="post-metadata">

**Author:** ![Jeremie\_L](https://forum.xojo.com/user_avatar/forum.xojo.com/jeremie_l/32/150_2.png) [@Jeremie\_L](https://forum.xojo.com/u/Jeremie_L)\
**Post date:** [November 18, 2020, 1:01pm UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861/6 "2020-11-18T13:01:48Z")

</div>

If you can avoid drawing text into a canvas on iOS it is better.  
iOS has accessibility features linked to the native controls that are lost when drawing text.

Alternative solution would be a container control with a label on top of a canvas.  
Draw the borders in the canvas, let the label handle display of text.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [May 20, 2021, 1:01am UTC](https://forum.xojo.com/t/drawinto-ioslabel/58861/7 "2021-05-20T01:01:54Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
