CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Mar 2015 |
Maintained by Ramon Gilabert.
A nicely alternative way to present alert views, add colors, text, customize them with images, and everything as easy as including a string.
Import the main file into your Xcode project and import it in the view controller you want the view to appear:
#import "RGLAlertView.h"In the view you want, instantiate the view, and present it.
RGLAlertView *view = [[RGLAlertView alloc] initWithBodyMessage:@"This is an alert view with a title" andDismissButtonText:@"Dismiss"];
[view setTitle:@"Alert with title"];
[view presentAlertViewWithAnimation:0];RGLAlertView *view = [[RGLAlertView alloc] initWithBodyMessage:@"This is an alert view with a title" andDismissButtonText:@"Dismiss"];
[view setTitle:@"Alert with title"];
[view setBody:@"This is some random text, funny thing about it is that, based in my size, the alert is going to get bigger and bigger!"];
[view addButtonWithTitle:@"Touch"];
[view addImageInTop:[UIImage imageNamed:@"firstImage"]];
[view presentAlertViewWithAnimation:0];With the delegate you're going to be able to know which button is getting tapped. Is that easy:
view.delegate = self;And then call the methods
- (void)buttonDidPressedWithTitle:(NSString *)string
{
NSLog(@"%@", string);
}- (void)buttonDismissDidPressed
{
}git checkout -b feature-branch).git commit -am 'Added this feature').git push origin feature-branch).Ramon Gilabert with love! :)