LoSenTrad / LSTPopView

(重构开发中,swift版本同步进行)LSTPopView iOS万能弹窗 (QQ群:1045568246 微信:a_LSTKit)
MIT License
1.04k stars 100 forks source link

进行二次封装, 添加链式语法类 LSTAlert. 以及完成关闭的回调。 #32

Closed kchtin closed 3 years ago

kchtin commented 3 years ago

LSTAlert *alert = LSTAlert.alert;

alert
.currCustomView(^UIView * _Nonnull{
    return view;
})
.adjustX(-rand()%300+25)
.adjustX(-rand()%300+25)
.groupId(@"blue")
.isHideBg(YES)
.isStack(self.blueSW.isOn)
.popViewDidDismissBlock(^{

})
.pop();

[LSTAlert dismissAlertComplete:^{

}];