[SDL] Showing a UIViewController on an SDL based iOS project

michelleC michelle at mooncatventures.com
Sun Jul 17 14:47:04 PDT 2011


Tim Angus wrote:
> On Sun, 17 Jul 2011 07:56:14 -0700 michelleC wrote:
> 
> > I think Sam added a function that makes this unnecessary , I don't
> > recall the name.
> > 
> 
> Hmm really? I can't seem to find it. I'm not sure it's really
> appropriate for SDL anyway. It should however be possible as it's
> likely to be a very common thing to want to do. Worth bunging in the
> wiki somewhere anyway; though I'm not sure where.
> 
> 
> > Here IS how we used to do it.
> > 
> > 
> > -(void) swapViews {
> > 	UIWindow *windows = [[UIApplication sharedApplication]
> > keyWindow];
> > 
> 
> I guess this makes the assumption that there is only one window? The
> part I negelected to mention in my post is that "window" is an
> SDL_Window* global, but it could just as easily be a parameter.
> _______________________________________________
> 
> 
> Sure, but thats usually how an iphone app is structured, one window but x number of viewcontrollers.
> 
> multiple windows don't make sense on the iphone
> 
> However I guess you could have two windows and swap between them.
> 
> http://code.google.com/p/ffmpeg4iphone/source/browse/WebStreamx/WebStreamXNoLibs/uikit/SDL_uikitappdelegate.m
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110717/49a5af8f/attachment-0008.htm>


More information about the SDL mailing list