UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"开始录制!" message:nil preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *enterAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleCancel handler:nil];
[alertController addAction:enterAction];
[self showDetailViewController:alertController sender:self];
转载于:https://www.cnblogs.com/Bo-tree/p/5161321.html
本文详细介绍了在Swift中如何使用UIAlertController来创建一个带有确认按钮的警告框。通过代码示例展示了UIAlertController的基本用法,包括设置标题、消息、样式及添加操作按钮。
271

被折叠的 条评论
为什么被折叠?



