TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Sep 2016 |
Maintained by Meniny.
MXAlertView
is a custom alert view.
#import "MXAlertView.h"
Sample Code for Custom Allocation:
MXAlertView *alert = [MXAlertView inquireAlert];
[alert setMessage:@"This is a Message"];
[alert setPositiveButton:@"OK" onClickListener:^(MXAlertOperation * _Nonnull alertView, NSString * _Nonnull inputString) {
if ([inputString length]) {
NSLog(@"Input: %@", inputString);
}
[alertView hide];
}];
[alert setNegativeButton:@"Cancel" onClickListener:^(MXAlertOperation * _Nonnull alertView, NSString * _Nonnull inputString) {
if ([inputString length]) {
NSLog(@"Input: %@", inputString);
}
[alertView hide];
}];
[alert show];