答案 0 :(得分:2)
但如果你想把它放在最上面而不是设置它,
hud.yOffset = -100.0;
答案 1 :(得分:0)
用于底部位置
MBProgressHUD *Hud = [[MBProgressHUD alloc] init];
hud.yOffset = 250.0; //For bottom location.
对于上部位置
MBProgressHUD *Hud = [[MBProgressHUD alloc] init];
hud.yOffset = -250.0; //For upper location.