您的位置:首页 > 产品设计 > UI/UE

UIAlertController的使用

2015-12-31 16:35 232 查看
UIAlertController *alert = [UIAlertController
alertControllerWithTitle:@"确定删除此分类吗?"
message:nil
preferredStyle:UIAlertControllerStyleAlert];

[alert addAction:[UIAlertAction
actionWithTitle:@"确定"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *
_Nonnull action) {
[self
shanChunFenLei];
}]];

[alert addAction:[UIAlertAction
actionWithTitle:@"取消"
style:UIAlertActionStyleCancel
handler:^(UIAlertAction *
_Nonnull action) {

}]];

[self
presentViewController:alert
animated:YES
completion:nil];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: