Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andrealufino/ALFullScreenAlert

This is a full screen alert which is useful to display some messages to the user. It provides the creation of 2 buttons.
https://github.com/andrealufino/ALFullScreenAlert

Last synced: 3 months ago
JSON representation

This is a full screen alert which is useful to display some messages to the user. It provides the creation of 2 buttons.

Awesome Lists containing this project

README

        

ALFullScreenAlert
=================

This is a full screen alert which is useful to display some messages to the user. You can also add one or two buttons of two different types and associate a block that will be performed when the user tap on the button.

Screenshot
=================
![alt text](screenshot.png)

Usage
=================

This is an example :

ALFSAlert *alert = [[ALFSAlert alloc] initInViewController:self];
[alert showAlertWithMessage:@"I'm a message from ALFSAlert. I'm trying to write in there from the ALFSAlert class which inherits from UIView."];
[alert addButtonWithText:@"Button" forType:ALFSAlertButtonTypeNormal onTap:^{
NSLog(@"Button");
}];
[alert addButtonWithText:@"Button 2" forType:ALFSAlertButtonTypeDelete onTap:^{
NSLog(@"Button 2");
}];