Latest 0.2.0
License MIT
Platforms ios 5.0, requires ARC

Custom alert that uses storyboards for its layout. Has out of the box Pixate support.
Using class names as action, cancel and destructive with message, title and alert-background.
Perfect if you want to use several differen styles of alert and button position.
Still early 0.1.1 but has loads of features in the pipeline. Check Roadmap for what’s planned.


Requires iOS 5 and above. Works wonders with auto layout.


Add the dependency to your Podfile:

platform :ios
pod 'SHAlert'

Run pod install to install the dependencies.

Next, import the header file wherever you want to use the picker:

#import "SHAlert.h"

Setup your view controller in the storyboard to use ‘SHViewControllerAlert’ and connect the setOutletCollection and class names
as user defined runtime variables on the outlets OR the descriptive outlets themselves (no need for the run time variables then)

pixate class names are such
alert-background (view)
destructive (button)
cancel (button)
action (button)
title (label)
message (label)

And the storyboardId will be the pixate style id

Register the storyboard that contains your alerts.

[SHAlert registerStoryBoard:myStoryboard];

Finally, present the alert when necessary

+(SHViewControllerAlert *)alertControllerWithStoryboardId:(NSString *)storyboardId
                                                withTitle:(NSString *)theTitle
                                               andMessage:(NSString *)theMessage;

-(void)setButtonTitleForCancel:(NSString *)theTitle withBlock:(SHAlertButtonTappedBlock)theBlock;
-(void)setButtonTitleForDestructive:(NSString *)theTitle withBlock:(SHAlertButtonTappedBlock)theBlock;
-(void)setButtonTitleForAction:(NSString *)theTitle withBlock:(SHAlertButtonTappedBlock)theBlock;

The storyboardId will be the id in your styling

SHAlertSampleWithPixate .cancel {…}


Usage is provided under the MIT License. See LICENSE for the full details.

Latest podspec

    "name": "SHAlert",
    "version": "0.2.0",
    "summary": "Custom Alert that uses story board for designing and styling. Has good support for Pixate. ",
    "description": "  Allows you to style multiple custom Alerts via Storyboard, and assing them as controls to use through blocks.n  You can set Pixate style class to customize the look and feel for the buttons, background and the alert window. n",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": ""
    "authors": {
        "Seivan Heidari": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.2.0"
    "platforms": {
        "ios": "5.0"
    "source_files": "SHAlert/**/*.{h,m}",
    "requires_arc": true

Pin It on Pinterest

Share This