MXMaterialAlert 1.3.0

MXMaterialAlert 1.3.0

测试测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年12月

Meniny 维护。



  • 作者:
  • Elias Abel

MXMaterialAlert-in-Objective-C

MXMaterialAlert是一个针对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]];

预览

one button

two buttons

moew buttons