The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
UITextField inside SDL_Window
Alexander Chaliovski
Guest
Posted: Mon Sep 15, 2014 1:00 pm
Hello,
Is it currently possible to create UITextField inside SDL_Window for IOS ?
I am curious on how to do it I was trying something like this but I cannot get it to work correctly.
   UIWindow * appWindow = wmInfo.info.uikit.window;
   UITextField* text = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
   UIViewController * rootViewController = appWindow.rootViewController;
   [view addSubview:text];