- (void)showMessageError {
alertMessage = [[UIAlertView alloc] initWithTitle:@"Impossible"
message:@"Here are the problems:\n%@,\n%@,\n%@",self.Error1,self.Error2,self.Error3
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alertMessage show];
}
I simply want to show this AlertView with only cancelButtonTitle but i receive an error near delegate:self
Expected’:’
Why ?
try this