iOS:Change DoricGravity enum name

This commit is contained in:
pengfei.zhou
2020-03-27 10:07:53 +08:00
committed by osborn
parent 0abf8533db
commit 438f729ec6
10 changed files with 55 additions and 55 deletions

View File

@@ -71,9 +71,9 @@ void ShowToast(NSString *text, DoricGravity gravity) {
label.height += 10;
label.layer.cornerRadius = label.height / 2;
label.centerX = superView.width / 2;
if ((gravity & BOTTOM) == BOTTOM) {
if ((gravity & DoricBottom) == DoricBottom) {
label.bottom = superView.height - 20;
} else if ((gravity & TOP) == TOP) {
} else if ((gravity & DoricTOP) == DoricTOP) {
label.top = 108;
} else {
label.centerY = (superView.height - 88) / 2;