Skip to content

lagubull/EasyAlert

Repository files navigation

Version License Platform

EasyAlert is a bundle of convenient methods that wrap UIALertController to reduce the amount of boiler plate code needed.

##Installation via Cocoapods

To integrate EasyAlert into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'EasyAlert'

Then, run the following command:

$ pod install

CocoaPods 0.39.0+ is required to build EasyAlert.

##Usage

EasyAlert is built on top of UIAlertController. It is composed of an alert view (pop up message) and an Action Sheet (bottom up menu).

AlertController

####Creation

#import <LEAAlertController.h>

....

    LEAAlertController *alert = [LEAAlertController dismissibleAlertViewWithTitle:@"Info"
                                                                          message:@"This is an Easy Alert example"
                                                                cancelButtonTitle:@"Got it!"];                                                         

Presentation

	[alert showInViewController:self];

AlertController

####Creation

#import <LEAActionSheet.h>

....

 LEAActionSheet *actionSheet = [LEAActionSheet actionSheetWithTitle:@"Select an option:"];
    
    [actionSheet addButtonWithTitle:@"Regular option"
                           andBlock:^(LEAActionSheet *actionSheet)
     {
         [self showDismissableAlert1:nil];
     }];

Presentation

	[actionSheet showInViewController:self];

EasyAlert comes with an example project to provide more details than listed above.

##Found an issue?

Please open a new Issue here if you run into a problem specific to EasyAlert, have a feature request, or want to share a comment.

Pull requests are encouraged and greatly appreciated! Please try to maintain consistency with the existing. If you're considering taking on significant changes or additions to the project, please communicate in advance by opening a new Issue. This allows everyone to get onboard with upcoming changes, ensures that changes align with the project's design philosophy, and avoids duplicated work.

Thank you!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published