MXMaterialAlert 1.3.0

MXMaterialAlert 1.3.0

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

Maintained by Meniny.



  • By
  • Elias Abel

MXMaterialAlert-in-Objective-C

MXMaterialAlert is a material style alert view for iOS.

Usage

#import "MXMaterialAlert.h"
MXMaterialAlert *material = [MXMaterialAlert makeWithTitle:@"Title" format:@"Some content here,hahahahahha😄", arc4random_uniform(999)];
[material addButton:@"Confirm" forType:MXMaterialAlertButtonTypeConfirm];

__weak typeof(self) weakSelf = self;
[material setOnClickListener:^(NSString *title, NSUInteger index) {
  __strong typeof(self) strongSelf = weakSelf;
  [strongSelf doSomeOtherThings];
}];

[material show];
[[MXAlertDefault standardDefaults] setDefaultNegativeButtonColor:[UIColor myColor]];

Preview

one button

two buttons

moew buttons