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

SIAlertView

叶茂
2023-12-01

SIAlertView是AlertView的替代产品 的效果比较多 。

使用实例:

SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"" andMessage:@"选择实名认证的银行卡类型"];

        [alertView addButtonWithTitle:@"借记卡" type:SIAlertViewButtonTypeDefault handler:^(SIAlertView *alertView) {

            ABAuthorViewController *ab = [[ABAuthorViewController alloc]init];

            ab.hidesBottomBarWhenPushed = YES;

            ab.isForAuthen = YES;

            [self.navigationController pushViewController:ab animated:YES];

        }];

        [alertView addButtonWithTitle:@"信用卡" type:SIAlertViewButtonTypeDefault handler:^(SIAlertView *alertView) {

            CAuthorViewController *ab = [[CAuthorViewController alloc]init];

            ab.hidesBottomBarWhenPushed = YES;

            ab.isForAuthen = YES;

            [self.navigationController pushViewController:ab animated:YES];

        }];

       

        [alertView addButtonWithTitle:@"取消"

                                 type:SIAlertViewButtonTypeCancel

                              handler:^(SIAlertView *alertView) {

                              }];

       

        alertView.willShowHandler = ^(SIAlertView *alertView) {

           

        };

        alertView.didShowHandler = ^(SIAlertView *alertView) {

           

        };

        alertView.willDismissHandler = ^(SIAlertView *alertView) {

           

        };

        alertView.didDismissHandler = ^(SIAlertView *alertView) {

            

        };

        [alertView show];

 

 

 

转载于:https://www.cnblogs.com/zhaozhongpeng/p/4867755.html

 类似资料:

相关阅读

相关文章

相关问答