I am using AlertView and the xcode, and the xcode shows the message: undeclared identifier alertLabel …
Here is the code:
-(void)alertView:(UIAlertView *) alerta didDismissWithButtonIndex:(NSInteger)buttonIndex
switch (buttonIndex) {
case 0:
alertLabel.text = @"Ok!";
break;
default:
break;
}
Could someone help me, please?
That error means there is no such thing as alertlabel, so make sure you declared it properly.