How do I add a UIViewController to GLSprite?

Posts: 81
Joined: 2007.07
Post: #1
I am trying to get ShareKit working on a GLSprite derived game. I want to be able to open ShareKit globally from C functions, what is the best way to do this? I tried adding a UIViewController to GLSprite by following the directions here but now none of my touches are registering.

Here is my code in applicationDidFinishLaunching to setup the viewcontroller, do I even need a viewcontroller or can I use glView somehow?
vc = [[EAGLViewController alloc] initWithNibName:nil bundle:nil];
[window addSubview:vc.view];

To open ShareKit:
// Create the item to share (in this example, a url)
NSURL *url = [NSURL URLWithString:@""];
SHKItem *item = [SHKItem URL:url title:@"Go to yahoo!"];

// Get the ShareKit action sheet
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

// Display the action sheet
[[SHK currentHelper] setRootViewController:vc];
[actionSheet showInView:self.window];
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Appdelegate vs. UIViewcontroller Mattonaise 6 9,925 Apr 28, 2011 07:43 AM
Last Post: aerospaceman
  Apple's GLSprite OpenGL ES Sample App shusseina 2 5,260 Apr 9, 2009 04:50 PM
Last Post: shusseina