How do I add a UIViewController to GLSprite?
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?
To open ShareKit:
Here is my code in applicationDidFinishLaunching to setup the viewcontroller, do I even need a viewcontroller or can I use glView somehow?
Code:
vc = [[EAGLViewController alloc] initWithNibName:nil bundle:nil];
[window addSubview:vc.view];To open ShareKit:
Code:
// Create the item to share (in this example, a url)
NSURL *url = [NSURL URLWithString:@"http://www.yahoo.com"];
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];
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Appdelegate vs. UIViewcontroller | Mattonaise | 6 | 6,246 |
Apr 28, 2011 07:43 AM Last Post: aerospaceman |
|
| Apple's GLSprite OpenGL ES Sample App | shusseina | 2 | 3,293 |
Apr 9, 2009 04:50 PM Last Post: shusseina |
|

