iOS:adjust position of toast
This commit is contained in:
parent
821cb1823c
commit
6a09c583fc
@ -102,7 +102,7 @@ void ShowToastInVC(UIViewController *_Nonnull vc, NSString *_Nonnull text, Doric
|
|||||||
if ((gravity & DoricGravityBottom) == DoricGravityBottom) {
|
if ((gravity & DoricGravityBottom) == DoricGravityBottom) {
|
||||||
label.bottom = superView.height - 20;
|
label.bottom = superView.height - 20;
|
||||||
} else if ((gravity & DoricGravityTop) == DoricGravityTop) {
|
} else if ((gravity & DoricGravityTop) == DoricGravityTop) {
|
||||||
label.top = 108;
|
label.top = 20;
|
||||||
} else {
|
} else {
|
||||||
label.centerY = (superView.height - 88) / 2;
|
label.centerY = (superView.height - 88) / 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user