Latest 0.1.1
Homepage https://github.com/luckytianyiyan/TYAlertView
License MIT
Platforms ios 7.0
Frameworks QuartzCore
Authors

CI Status
Version
Platform
License

Feature

  • UIAppearance Support
  • Block Syntax

Usage

Simply

“`objective-c
TYAlertView *alertView = [[TYAlertView alloc] initWithTitle:@”title” message:@”message”];
[alertView addAction:[TYAlertAction actionWithTitle:@”Ok”
style:TYAlertActionStyleDefault
handler:^(TYAlertAction * _Nonnull action) {
NSLog(@”Ok button clicked”);
}]];
[alertView show];
“`

Custom TYAlertView Theme

“`objective-c
[TYAlertView appearance].titleColor = [UIColor redColor];
[TYAlertView appearance].messageColor = [UIColor redColor];
[TYAlertView appearance].separatorColor = [UIColor grayColor];
[TYAlertView appearance].shadowRadius = 4.0f;
[TYAlertView appearance].popupViewBackgroundColor = [UIColor blueColor];
// Button Title Color
[[TYAlertView appearance] setButtonTitleColor:[UIColor yellowColor]
forActionStyle:TYAlertActionStyleDefault
forState:UIControlStateNormal];
“`

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

TYAlertView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "TYAlertView"

License

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

Latest podspec

{
    "name": "TYAlertView",
    "version": "0.1.1",
    "summary": "A highly customized iOS alert view.",
    "description": "Similar to UIAlertView / UIAlertController, but more flexible",
    "homepage": "https://github.com/luckytianyiyan/TYAlertView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "luckytianyiyan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/luckytianyiyan/TYAlertView.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/luckytianyiyan",
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "TYAlertView/Classes/**/*",
    "frameworks": "QuartzCore"
}

Pin It on Pinterest

Share This