This very easy to use AlertView allows you to interact in a nice way with your users while preserving the aesthetics of the screen.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
GRNAlertView
screenshots
.DS_Store
GRNAlertView.podspec
LICENSE
README.md

README.md

GRNAlertView

This library has been created by www.guarana.io

This very easy to use AlertView allows you to interact in a nice way with your users while preserving the aesthetics of the screen.

Installation

  • Cocoapods
pod 'GRNAlertView', '~> 1.0'

CLick here more information about cocoapods and how to install it

  • Manual

Drag the folder GRNAlertView into your project.

How to use it

Instantiate your AlertContoller

Note : If you want only one button, just let the rightButtonTitle string empty.

AlertController * alert = [[AlertController alloc] initWithTitle:@"My Title" subTitle:@"With a sub-title here" content:@"This is an alert view whith image Type some content here." leftButtonTitle:@"OK" rightButtonTitle:@"" andImage:[UIImage imageNamed:@"globe"]];

Set the button actions

[alert setLeftButtonAction:^(AlertController * controller) {
    // Do something here
    
}];

[alert setRightButtonAction:^(AlertController *controller) {
    // Do something here
    
}];

Show the alert like so

[alert showOn:self];
    

Set the type of background you want :

alert.backgroundType = BackgroundTypeTransparentLight;
  • BackgroundTypeDefault (background is transparent)

  • BackgroundTypeTransparentLight (background is white with an alpha)

Light

  • BackgroundTypeTransparentDark (background is black with an alpha)

Dark

  • BackgroundTypeBlurred (background is blurred)

Blurred

Customization

//label text colors
titleColor
subtitleColor
contentColor

//button tint colors
leftButtonColor
rightButtonColor

//background of the alertview frame
alertBackgroundColor
//background of the buttons
leftButtonBackgroundColor
rightButtonBackgroundColor

//alertview radius
cornerRadius
//alertview shadow opacity
shadowOppacity
//alertview shadow spread
shadowSpread

Coming soon

  • More Transitions
  • More Animations
  • Dynamic buttons (vertical/horizontal)
  • Rating options
  • Cocoapods