分享一下上个项目写的自定义弹窗,包含三种样式。代码写的比较随意,弹出跟消失做了小动画,调用比较简单。
```
[MJAlertHelpView showMsg:@"hello" imageStr:FACE_LOGIN];
[MJAlertHelpView showMsgWithTitle:@"title" msg:@"msg" imageStr:FACE_CASH okStr:@"ok" okAction:^{
DLog(@"ok");
}];
[MJAlertHelpView showMsgWithTitle:@"title" msg:@"msg" imageStr:FACE_UPDATE leftStr:@"left" leftAction:^{
DLog(@"left");
} rightStr:@"right" rightAction:^{
DLog(@"right");
}];
```
[MJAlertHelpView showMsg:@"hello" imageStr:FACE_LOGIN];
[MJAlertHelpView showMsgWithTitle:@"title" msg:@"msg" imageStr:FACE_CASH okStr:@"ok" okAction:^{
DLog(@"ok");
}];
[MJAlertHelpView showMsgWithTitle:@"title" msg:@"msg" imageStr:FACE_UPDATE leftStr:@"left" leftAction:^{
DLog(@"left");
} rightStr:@"right" rightAction:^{
DLog(@"right");
}];
```