i have a problem about alerts when i am adding following to my program it shows error UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"That's it" message:@"THANKS FOR USING" delegate:self cancelButtonTitle:@"bye" otherButtonTitles:nil];
[alert show];
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
NSLog(@"Button %d pressed", buttonIndex);
[ alertView release ];
}
this shows errors----alertView undeclared and expected ; before: please solve my problem i want to perform some actions when i click button on alert.