UIAlertController的使用

来源:互联网 发布:下载钢琴谱软件 编辑:程序博客网 时间:2024/06/16 04:47
    UIAlertController *alert =[UIAlertController alertControllerWithTitle:@"提醒" message:@"请选择" preferredStyle:UIAlertControllerStyleAlert];    UIAlertAction *action =[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:nil];    [alert addAction:action];    [self presentViewController:alert animated:YES completion:nil];

0 0
原创粉丝点击