Skip to content

chucklab/MCIconAlertController

Repository files navigation

MCIconAlertController

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 "chucklab/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.

About

Alert controller with icon, have fun.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors