MultiStyleAlert
特性
- 改变UIAlertController标题和消息的字体和颜色
- 改变UIAlertAction标题的颜色。
- 简洁的弹出。
安装
只需将以下行添加到您的Podfile
pod 'MultiStyleAlert'
屏幕截图
使用
在使用的文件中导入头文件
#import "MultiStyleAlert.h"
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Change title & message" message:@"change title & message's color and font " preferredStyle:UIAlertControllerStyleAlert];
[alert addActionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil];
[alert addActionWithTitle:@"Destructive" style:UIAlertActionStyleDestructive handler:nil];
[alert show];
协议
MultiStyleAlert 在MIT协议下提供。更多信息请参阅LICENSE文件。