TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2016 |
Maintained by Meniny.
MXMaterialAlert
is a material style alert view for iOS.
#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]];