Is there an easy way to add a UIActionSheet from within a Cocos2d Scene or Layer? The code I've used in the past is:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:NSLocalizedString(@"Clear All Times?",@"Asks if user wants to erase there best times") delegate:self cancelButtonTitle:NSLocalizedString(@"Cancel",@"Cancel the action") destructiveButtonTitle:NSLocalizedString(@"Yes, Erase Them.",@"Gives permission to delete scores") otherButtonTitles:nil];
[actionSheet addSubview:self.view];
[actionSheet release];
This of course doesn't work because there is no self.view. Is there a way to access the view? I tried to get at it through the App Delegate but didn't have any luck. Any help is appreciated. Thanks!