Adding a UIViewController to the SIO2 template

View previous topic View next topic Go down

Adding a UIViewController to the SIO2 template

Post  manuelmartinf on Fri Oct 16, 2009 12:59 pm

I have added the viewControlleer .h and .m, with the EAGLView class added to this viewController. Then I have replaced the calls to the EAGLView class on the applicationDidFinishLaunching procedure on the templateAppDelegate by the calls to the EAGLView member of the new viewController class.

The code doesn't crash but doesn't draw nothing on the screen. Maybe it's a problem with the NIB file.

To sum up, does anybody knows how to add properly an UIViewController to the SIO2 template?

Thank you very much!

manuelmartinf

Posts : 14
Join date : 2009-09-13

View user profile

Back to top Go down

Re: Adding a UIViewController to the SIO2 template

Post  uprise78 on Fri Oct 16, 2009 3:04 pm

EAGLView is just a UIView subclass. You can put it in a UIWindow or add it as a subview of a UIViewControllers view. It's all the same.

uprise78

Posts : 228
Join date : 2008-10-31

View user profile

Back to top Go down

Re: Adding a UIViewController to the SIO2 template

Post  yarri on Fri Oct 16, 2009 11:02 pm

Hi, if you mean something like this:
http://iTunes.com/apps/ridengivelite

then look here:
http://sio2interactive.forumotion.net/sio2-engine-f3/integrating-sio2-with-obj-c-classes-t791.htm

--yarri

yarri

Posts : 81
Join date : 2009-04-10

View user profile

Back to top Go down

Re: Adding a UIViewController to the SIO2 template

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum