FYI, it looks like Stephan's FlipsideView example is broken in iOS 6.

I get an error when trying to add the view:

Code:
-[UIView setRootViewController:]: unrecognized selector sent to instance 
0xca36f0
2012-10-31 11:53:50.850 viewtest[2745:907] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '-[UIView 
setRootViewController:]: unrecognized selector sent to instance 0xca36f0'



In my project, I ended up creating a custom subclass of UIView, which I use 
instead of the default one that comes with a UIViewController and added the 
following method to my custom class:

Code:
- (void) setRootViewController:(UIViewController*)vc;



It's implementation is empty (no op), but it allows the OSG view to be added 
and everything updates correctly after that.

Now my only problem is that my app crashes when the view is Dealloc'd. I get 
this error:

Code:
*** -[GraphicsWindowIOSGLView setGraphicsWindow:]: message sent to deallocated 
instance 0x2411acc0



Any ideas for fixing that one?

Thanks,
Mike

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50919#50919





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to