Question : uialertcontroller example objective c
Answered by : icraze
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My Alert" message:@"This is an alert." preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {}];
[alert addAction:defaultAction];
[self presentViewController:alert animated:YES completion:nil];
Source : https://stackoverflow.com/questions/42173060/how-to-use-uialertcontroller | Last Update : Wed, 03 Jun 20