iOS:adjust position of toast

This commit is contained in:
pengfei.zhou 2020-09-05 11:13:28 +08:00 committed by osborn
parent 821cb1823c
commit 6a09c583fc

View File

@ -102,7 +102,7 @@ void ShowToastInVC(UIViewController *_Nonnull vc, NSString *_Nonnull text, Doric
if ((gravity & DoricGravityBottom) == DoricGravityBottom) {
label.bottom = superView.height - 20;
} else if ((gravity & DoricGravityTop) == DoricGravityTop) {
label.top = 108;
label.top = 20;
} else {
label.centerY = (superView.height - 88) / 2;
}