# Embed SDL window to iOS UIView or ViewController

**URL:** <https://discourse.libsdl.org/t/embed-sdl-window-to-ios-uiview-or-viewcontroller/24168>\
**Category:** SDL Development\
**Created:** [April 6, 2018, 1:44pm UTC](https://discourse.libsdl.org/t/embed-sdl-window-to-ios-uiview-or-viewcontroller/24168 "2018-04-06T13:44:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lawgimenez](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/lawgimenez/32/3287_2.png) [@lawgimenez](https://discourse.libsdl.org/u/lawgimenez)\
**Post date:** [April 6, 2018, 1:44pm UTC](https://discourse.libsdl.org/t/embed-sdl-window-to-ios-uiview-or-viewcontroller/24168/1 "2018-04-06T13:44:44Z")

</div>

Hi! Is it possible to embed the SDL Window from the SDL\_CreateWindow() to an iOS UIView() or ViewController perhaps? Because I want more control of it. Right now it is just displaying the whole Window. Because the thing is I need to take screenshots from it which is also not working as of now. I have not much experience with SDL so anyone can assist and help me thanks!

Also, I saw this link [https://forums.libsdl.org/viewtopic.php?p=35178](https://forums.libsdl.org/viewtopic.php?p=35178)

Any idea on how to get a pointer of SDL’s view controller?

---

<div class="post-metadata">

**Author:** ![lawgimenez](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/lawgimenez/32/3287_2.png) [@lawgimenez](https://discourse.libsdl.org/u/lawgimenez)\
**Post date:** [April 12, 2018, 1:07am UTC](https://discourse.libsdl.org/t/embed-sdl-window-to-ios-uiview-or-viewcontroller/24168/2 "2018-04-12T01:07:55Z")

</div>

Hi! Any help here? I need help on this issue as soon as possible. Thanks!
