Answers for "how to use uialertcontroller in objective c as a function"

3

uialertcontroller example objective c

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];
Posted by: Guest on May-27-2020

Code answers related to "how to use uialertcontroller in objective c as a function"

Code answers related to "Objective-C"

Browse Popular Code Answers by Language