I am trying to call and alert when a button is pressed. i use this :
-(IBAction)Add { UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @\"add bu
To detect the button clicks the alert view must have an associated delegate, e.g.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"add button pressed" message:@"Add to record" delegate:self // <------ cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];