UIAlertView+AWKit.h

Includes:
<UIKit/UIKit.h>

Introduction

Use the links in the table of contents to the left to access the documentation.



Methods

+alertWithTitle:message:cancelButtonTitle:
+alertWithTitle:message:cancelButtonTitle:onCancel:
+alertWithTitle:message:cancelButtonTitle:otherButtonTitles:onCancel:onDismiss:
+initWithTitle:message:cancelButtonTitle:otherButtonTitles:onCancel:onDismiss:

alertWithTitle:message:cancelButtonTitle:


+ (UIAlertView*)alertWithTitle:(NSString*)title message:(NSString*)message 
        cancelButtonTitle:(NSString*)cancelButtonTitle;  
Parameters
title

- Title of the actionsheet

message

- A message to be displayed

cancelButtonTitle

- Cancel button title

Discussion

Creates a UIAlertView

Must be used on the main thread:


alertWithTitle:message:cancelButtonTitle:onCancel:


+ (UIAlertView*)alertWithTitle:(NSString*)title message:(NSString*)message 
        cancelButtonTitle:(NSString*)cancelButtonTitle onCancel:(AWAlertViewDidCancelBlock)cancelled;  
Parameters
title

- Title of the actionsheet

message

- A message to be displayed

cancelButtonTitle

- Cancel button title

onCancel

- On cancel block to be executed

Discussion

Creates a UIAlertView with optional cancel block

Must be used on the main thread:


alertWithTitle:message:cancelButtonTitle:otherButtonTitles:onCancel:onDismiss:


+ (UIAlertView*)alertWithTitle:(NSString*)title message:(NSString*)message 
        cancelButtonTitle:(NSString*)cancelButtonTitle 
        otherButtonTitles:(NSArray*)otherButtons onCancel:(AWAlertViewDidCancelBlock)cancelled 
        onDismiss:(AWAlertViewDidDismissBlock)dismissed;  
Parameters
title

- Title of the actionsheet

message

- A message to be displayed

cancelButtonTitle

- Cancel button title

otherButtons

- Array of other buttons title strings

onCancel

- On cancel block to be executed

onDismiss

- On dismiss block to be executed

Discussion

Creates a UIAlertView with optional cancel and dismissal blocks

Must be used on the main thread:


initWithTitle:message:cancelButtonTitle:otherButtonTitles:onCancel:onDismiss:


- (id)initWithTitle:(NSString*)title message:(NSString*)message 
        cancelButtonTitle:(NSString*)cancelButtonTitle 
        otherButtonTitles:(NSArray*)otherButtons onCancel:(AWAlertViewDidCancelBlock)onCancel 
        onDismiss:(AWAlertViewDidDismissBlock)onDismiss;  
Parameters
title

- Title of the actionsheet

message

- A message to be displayed

cancelButtonTitle

- Cancel button title

otherButtons

- Array of other buttons title strings

onCancel

- On cancel block to be executed

onDismiss

- On dismiss block to be executed

Discussion

Creates a UIAlertView with optional cancel and dismissal blocks

Must be used on the main thread: