@@ -19,8 +19,10 @@ - (void)viewDidLoad
1919{
2020 [super viewDidLoad ];
2121
22- // [[SIAlertView appearance] setTitleFont:[UIFont boldSystemFontOfSize:40]];
23- [[SIAlertView appearance ] setCornerRadius: 4 ];
22+ [[SIAlertView appearance ] setMessageFont: [UIFont systemFontOfSize: 13 ]];
23+ [[SIAlertView appearance ] setTitleColor: [UIColor greenColor ]];
24+ [[SIAlertView appearance ] setMessageColor: [UIColor purpleColor ]];
25+ [[SIAlertView appearance ] setCornerRadius: 12 ];
2426}
2527
2628#pragma mark - Actions
@@ -57,26 +59,32 @@ - (IBAction)alert1:(id)sender
5759 NSLog (@" %@ , didDismissHandler" , alertView);
5860 };
5961
62+ // alertView.cornerRadius = 4;
63+ // alertView.buttonFont = [UIFont boldSystemFontOfSize:12];
6064 [alertView show ];
6165
62- // alertView.title = @"3";
63- // double delayInSeconds = 1.0;
64- // dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
65- // dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
66- // alertView.title = @"2";
67- // });
68- // delayInSeconds = 2.0;
69- // popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
70- // dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
71- // alertView.title = @"1";
72- // });
73- // delayInSeconds = 3.0;
74- // popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
75- // dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
76- // NSLog(@"1=====");
77- // [alertView dismissAnimated:YES];
78- // NSLog(@"2=====");
79- // });
66+ alertView.title = @" 3" ;
67+ double delayInSeconds = 1.0 ;
68+ dispatch_time_t popTime = dispatch_time (DISPATCH_TIME_NOW, (int64_t )(delayInSeconds * NSEC_PER_SEC));
69+ dispatch_after (popTime, dispatch_get_main_queue (), ^(void ){
70+ alertView.title = @" 2" ;
71+ alertView.titleColor = [UIColor yellowColor ];
72+ alertView.titleFont = [UIFont boldSystemFontOfSize: 30 ];
73+ });
74+ delayInSeconds = 2.0 ;
75+ popTime = dispatch_time (DISPATCH_TIME_NOW, (int64_t )(delayInSeconds * NSEC_PER_SEC));
76+ dispatch_after (popTime, dispatch_get_main_queue (), ^(void ){
77+ alertView.title = @" 1" ;
78+ alertView.titleColor = [UIColor greenColor ];
79+ alertView.titleFont = [UIFont boldSystemFontOfSize: 40 ];
80+ });
81+ delayInSeconds = 3.0 ;
82+ popTime = dispatch_time (DISPATCH_TIME_NOW, (int64_t )(delayInSeconds * NSEC_PER_SEC));
83+ dispatch_after (popTime, dispatch_get_main_queue (), ^(void ){
84+ NSLog (@" 1=====" );
85+ [alertView dismissAnimated: YES ];
86+ NSLog (@" 2=====" );
87+ });
8088
8189}
8290
0 commit comments