UIAlertController * alertController = [UIAlertController alertControllerWithTitle:@"是否打开“微信”" message:@"" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction * cancleAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
}];
[alertController addAction:cancleAction];
UIAlertAction * sureAction = [UIAlertAction actionWithTitle:@"打开" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
}];
[alertController addAction:sureAction];
[self presentViewController:alertController animated:YES completion:nil];
文章来源: 博客园
- 还没有人评论,欢迎说说您的想法!