MXAlert 2.0.0

MXAlert 2.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2016

Maintained by Meniny.



MXAlert 2.0.0

  • By
  • Elias Abel

MXAlert-in-Objective-C

MXAlert is a custom alert view.

Screenshots

image.jpgdetail.jpgabout.jpgpoints.jpginput.jpginquire.jpginfo.jpgloading.jpg

Usage

#import "MXAlert.h"

Sample Code:

MXAlert *alert = [MXAlert 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];