当前位置: 首页 > 工具软件 > Jot-iOS > 使用案例 >

iOS UIAlterController

曹臻
2023-12-01
 UIAlertController *alterController = [UIAlertController alertControllerWithTitle:@"预订提醒"
                                                                             message:title
                                                                      preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *actionCancel = [UIAlertAction actionWithTitle:@"取消"
                                                           style:UIAlertActionStyleDefault
                                                         handler:^(UIAlertAction * _Nonnull action) { }];

    UIAlertAction *actionSubmit = [UIAlertAction actionWithTitle:@"确定"
                                                           style:UIAlertActionStyleDefault
                                                         handler:^(UIAlertAction * _Nonnull action) {}];

    [alterController addAction:actionCancel];
    [alterController addAction:actionSubmit];
    [self presentViewController:alterController animated:YES completion:^{}];
 类似资料:

相关阅读

相关文章

相关问答