Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Gi-z/MKAlertView

A self-contained Metro UI style UIAlertView replacement.
https://github.com/Gi-z/MKAlertView

Last synced: 3 months ago
JSON representation

A self-contained Metro UI style UIAlertView replacement.

Awesome Lists containing this project

README

        

MKAlertView
===========

A Metro UI style UIAlertView replacement with 3D animations.

![demo image](http://i.imgur.com/OPjGvbA.jpg)

## Requirements

MKAlertView requires QuartzCore to be linked to the project, and has been tested to iOS 5+.
MKAlertView also works best with the SourceSansPro typeset, and uses it by default. SourceSansPro is made by Adobe, is available freely and can be downloaded from here. http://sourceforge.net/projects/sourcesans.adobe/

## Usage

MKAlertView can be instantiated with the following lines.

MKAlertView *al = [[MKAlertView alloc] initWithType:MKAlertViewTypeDialog title:@"TITLE TEXT" body:@"BODY TEXT" leftButton:@"dismiss" rightButton:@"confirm"];
al.delegate = self;
[al show];

The following delegate methods are available.

- (void)alertViewConfirmed:(MKAlertView *)alertView;
- (void)alertViewDismissed:(MKAlertView *)alertView;
- (void)alertViewConfirmed:(MKAlertView *)alertView withText:(NSString *)enteredText;

## License

MetroKit (the classes MKButton and MKTextField) were originally written by Shawn Wall.
MKAlertView is freely available, provided credits are made to "Glenn Forbes".