I am trying to add a UIAlertController to my application, but it does not appear at all. I tried the following:
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Message" message:@"Web Service is not available." preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction* ok = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]; [alertController addAction:ok]; [self presentViewController:alertController animated:YES completion:nil];
but it doesn’t appear at all, what am I doing wrong?
ios objective-c uialertcontroller
Magna boss
source share