# How Do you Set a background image for a view (screen

**URL:** <https://forum.xojo.com/t/how-do-you-set-a-background-image-for-a-view-screen/64193>\
**Category:** iOS\
**Created:** [June 29, 2021, 10:53pm UTC](https://forum.xojo.com/t/how-do-you-set-a-background-image-for-a-view-screen/64193 "2021-06-29T22:53:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roger\_holmes](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/2acd7d/32.png) [@roger\_holmes](https://forum.xojo.com/u/roger_holmes)\
**Post date:** [June 29, 2021, 10:53pm UTC](https://forum.xojo.com/t/how-do-you-set-a-background-image-for-a-view-screen/64193/1 "2021-06-29T22:53:08Z")

</div>

I feel really stupid having to ask this question. I program iOS with swift so my terms of reference starts there. I can find NO XOJO example using a background image being set on a view (screen). do I need to put a image view on a screen then assign every component to that image view (buttons, labels, textbox, etc…)]

help plz…

---

<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:** [June 30, 2021, 12:43am UTC](https://forum.xojo.com/t/how-do-you-set-a-background-image-for-a-view-screen/64193/2 "2021-06-30T00:43:34Z")

</div>

The easiest way is to set a Mobileimageviewer as the background of the screen.

You can also use iOSdesignExtensions [GitHub - jkleroy/iOSDesignExtensions: 100+ functions to extend iOSControls design](https://github.com/jkleroy/iOSdesignExtensions)

---

<div class="post-metadata">

**Author:** ![roger\_holmes](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/2acd7d/32.png) [@roger\_holmes](https://forum.xojo.com/u/roger_holmes)\
**Post date:** [April 3, 2024, 5:45pm UTC](https://forum.xojo.com/t/how-do-you-set-a-background-image-for-a-view-screen/64193/3 "2024-04-03T17:45:31Z")

</div>

setBackgroundImageXC no longer works (does not appear as an option) any longer  
Xojo version 2024 v 1.

---

<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:** [April 3, 2024, 6:25pm UTC](https://forum.xojo.com/t/how-do-you-set-a-background-image-for-a-view-screen/64193/4 "2024-04-03T18:25:13Z")

</div>

setBackgroundImageXC was removed due to a memory leak I couldn’t fix if I remember correctly.

Sorry about that.
