Latest 0.1.4
Homepage https://github.com/lianleven/MultiStyleAlert
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

Features

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

Installation

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

pod 'MultiStyleAlert'

ScreenShot

MultiStyleAlertMultiStyleAlertMultiStyleAlertMultiStyleAlert

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.

Latest podspec

{
    "name": "MultiStyleAlert",
    "version": "0.1.4",
    "summary": "UIAlertController multi-style, using KVC to achieve",
    "description": "u4f7fu7528 KVC u66f4u6539 UIAlertController u7684title,message and alert action u663eu793au989cu8272u548cu5b57u4f53",
    "homepage": "https://github.com/lianleven/MultiStyleAlert",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lianleven": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lianleven/MultiStyleAlert.git",
        "tag": "0.1.4"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MultiStyleAlert/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This