views:

58

answers:

0

I need to load an action sheet on a GLSprite derived game. I tried adding a UIViewController but when I display the actionsheet none of my touches are registering, and I can't figure out how to close the action sheet and switch the view back to my game?

Should I only create a UIViewController when its needed, or all of the time? Rather than creating UIViewController and layering it on top of my EAGLView should I simply change the EAGLView:UIView to an EAGLView:UIViewController? Will this have any bad effects such as automatically rotating my view or performance issues, I've read mixing UIKit stuff with OGLES stuff is bad?

Here is how I load the actionsheet at the end of EAGLView::setupView (just to load and it test).

vc = [[EAGLViewController alloc] initWithNibName:nil bundle:nil];
[self addSubview:vc.view];
[SHK setRootViewController:vc];
NSURL *url = [NSURL URLWithString:@"http://getsharekit.com"];
SHKItem *item = [SHKItem URL:url title:@"ShareKit is Awesome!"];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
[actionSheet showInView:self];