Skip to content

why19910522/WHYAlertController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHYAlertController

对系统UIAlertController的简单封装

##简单用法

	WHYAlertController *alert = [WHYAlertController alertWithTitle:@"" cancelTitle:@"取消" cancelHandler:nil defaultTitle:@"确认" defaultHandler:nil];
    alert.customMessage = [[NSAttributedString alloc] initWithString:@"World" attributes:@{NSForegroundColorAttributeName : [UIColor redColor]}];
    alert.customTitle = [[NSAttributedString alloc] initWithString:@"Hello" attributes:@{NSForegroundColorAttributeName : [UIColor blueColor]}];
    [self presentViewController:alert animated:YES completion:nil];
	WHYAlertController *actionSheet = [WHYAlertController actionSheetWithTitle:@"Hello" cancelTitle:@"取消" cancelHandler:nil defaultTitle:@"确认" defaultHandler:nil];
    [self presentViewController:actionSheet animated:YES completion:nil];

About

对系统UIAlertController的简单封装

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published