Skip to content

使用 KVC 更改 UIAlertController 的title,message and alert action 显示颜色和字体

License

Notifications You must be signed in to change notification settings

lianleven/MultiStyleAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiStyleAlert

Version License Platform

Features

  • 改变 UIAlertController title and message 的字体和颜色
  • 改变 UIAlertAction title的颜色.
  • 简便的弹出。

Installation

只需将以下行添加到您的Podfile

pod 'MultiStyleAlert'

ScreenShot

Usage

在使用的文件中导入头文件

#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];

License

MultiStyleAlert is available under the MIT license. See the LICENSE file for more info.

About

使用 KVC 更改 UIAlertController 的title,message and alert action 显示颜色和字体

Resources

License

Stars

Watchers

Forks

Packages

No packages published