Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

kchtin
Copy link
Contributor

@kchtin kchtin commented Mar 16, 2021

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:^{

}];

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:^{

    }];
@LoSenTrad LoSenTrad merged commit 9456e88 into LoSenTrad:master Mar 16, 2021
@kchtin kchtin deleted the kchtin-链式 branch March 17, 2021 08:29
@kchtin kchtin restored the kchtin-链式 branch March 17, 2021 08:40
@kchtin kchtin deleted the kchtin-链式 branch March 17, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants