NSString *message = @"内容";
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:message preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//点击确定后执行的操作;
}]];
[self presentViewController:alert animated:true completion:^{
//显示提示框后执行的事件;
}];
网友评论