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

iOS 9 弹窗UIalertController

2016-04-05 16:22 441 查看
    UIAlertController * alert = [UIAlertController alertControllerWithTitle:@"删除确认" message:nil preferredStyle:UIAlertControllerStyleAlert];

    UIAlertAction * decideaction = [UIAlertAction actionWithTitle:@"删除" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

        

        //此处写点击事件

        

        

    }];

    

    UIAlertAction * cancelaction = [UIAlertAction actionWithTitle:@"放弃" style:UIAlertActionStyleDefault handler:nil];

    [alert addAction:decideaction];

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