im trying to make a UIAlertViewDelegate,
i already add the delegate in .h file just like: @interface PROGGameViewController: UIViewController <UIGestureRecognizerDelegate, PROGGameViewDelegate, PROGLevelDelegate, UIAlertViewDelegate>,
cause there are not only one delegate in my program
and i do the delegate menthod as normal, but when i click the alertview button, nothing run,
can someone tell me anything for help??
my program is all allright, i know something run in my alertviewdelegate part, but i dont know where
regards
UIAlertView question
Page 1 of 12 Replies - 1512 Views - Last Post: 19 April 2012 - 06:33 AM
Replies To: UIAlertView question
#2
Re: UIAlertView question
Posted 19 April 2012 - 05:49 AM
You will need to show your code. Without it no one will be able to help.
Jim
Jim
#3
Re: UIAlertView question
Posted 19 April 2012 - 06:33 AM
jimblumberg, on 19 April 2012 - 05:49 AM, said:
You will need to show your code. Without it no one will be able to help.
Jim
Jim
- (void)alertView:(UIAlertView *)alertView clickButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0)
{
[delegate gameOverWithScore: gameScore];
}
else if (buttonIndex == 1)
{
NSLog(@"world");
}
}
- (IBAction)showMessage
{
UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"play again"
message:@"do you want to restart the game?"
delegate:self
cancelButtonTitle:@"ok"
otherButtonTitles:@"cancel", nil];
[message show];
}
REGARDS
This post has been edited by jimblumberg: 19 April 2012 - 06:40 AM
Reason for edit:: Put code in code tags
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|