CustomAlertView
自定义 view
导入头文件 #import "UIView+CustomAlertView.h"
//创建view
//只需要 宽和高
CustomAlertView *alert = [[CustomAlertView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
//调用即可实现
[alert showInWindowWithMode:CustomAnimationModeAlert bgAlpha:0.2 needEffectView:YES];
//隐藏view
[alert hideView];
//关闭背景点击事件 UIView *vi = [[UIApplication sharedApplication].keyWindow viewWithTag:TagValue]; vi.userInteractionEnabled = NO;