Latest 0.0.9
Homepage https://github.com/imegatron/MCIconAlertController
License MIT
Platforms ios 6.0, requires ARC
Dependencies Masonry
Frameworks Foundation, UIKit
Authors

License MIT
Carthage compatible
Pod Version
Pod Platform
Support
Build Status
Coverage Status
Reference Status

Alert controller with icon, have fun.

Screen-Shot-01-w100
Screen-Shot-02-w100
Screen-Shot-03-w100
Screen-Shot-04-w100
Screen-Shot-05-w100

Installation

Cocoapods:

  1. Add pod 'MCIconAlertController', '~> 0.0.1' to your Podfile.
  2. Run pod install or pod update.
  3. Import <MCIconAlertController.h>.

Carthage:

  1. Add github "imegatron/MCIconAlertController" to your Cartfile.
  2. Run carthage update --platform ios and add the framework to your project.
  3. Import <MCIconAlertController/MCIconAlertController.h>.

Usage

MCIconAlertController *iconAlertController = [[MCIconAlertController alloc] init];
iconAlertController.iconImage = [UIImage imageNamed:@"dog.jpg"];
iconAlertController.title = @"Rigo";
iconAlertController.message = @"Hello there, how are you!";
iconAlertController.leftButtonTitle = @"Accept";
iconAlertController.rightButtonTitle = @"Ignore";
iconAlertController.leftButtonTappedBlock = ^(){
    NSLog(@"leftButtonTappedBlock");
};
iconAlertController.rightButtonTappedBlock = ^(){
    NSLog(@"rightButtonTappedBlock");
};
[iconAlertController show];

Requirements

This library requires a deployment target of iOS 6.0 or greater.

License

MCIconAlertController is provided under the MIT license. See LICENSE file for details.

Latest podspec

{
    "name": "MCIconAlertController",
    "version": "0.0.9",
    "summary": "Alert controller with icon.",
    "description": "Alert controller with icon, have fun.",
    "homepage": "https://github.com/imegatron/MCIconAlertController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Chao Ma": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/imegatron/MCIconAlertController.git",
        "tag": "0.0.9"
    },
    "source_files": "Classes",
    "exclude_files": "Classes/Exclude",
    "public_header_files": "Classes/*.h",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true,
    "dependencies": {
        "Masonry": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This