Latest 1.0.1
Homepage https://github.com/guaranatech/GRNAlertView
License MIT
Platforms ios 8.0, requires ARC
Authors

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

Latest podspec

{
    "name": "GRNAlertView",
    "version": "1.0.1",
    "summary": "This very easy to use AlertView allows you to interact in a nice way with your users while preserving the aesthetics of the screen.",
    "description": "This very easy to use AlertView allows you to interact in a nice way with your users while preserving the aesthetics of the screen.",
    "homepage": "https://github.com/guaranatech/GRNAlertView",
    "screenshots": "https://github.com/guaranatech/GRNAlertView/blob/master/screenshots/screenshot1.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Guarana Technologies": "[email protected]"
    },
    "social_media_url": "https://twitter.com/GuaranaTech",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/guaranatech/GRNAlertView.git",
        "tag": "1.0.3"
    },
    "source_files": [
        "GRNAlertView",
        "GRNAlertView/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This