2012-06-07 91 views

回答

9

是你可以做這樣的事情:

MBProgressHUD *loadingHUD = [[MBProgressHUD alloc] init]; 
loadingHUD.mode = MBProgressHUDModeCustomView; 
loadingHUD.labelText = nil; 
loadingHUD.detailsLabelText = nil; 
UIView *customView = [[UIView alloc] initWithFrame:self.view.bounds]; // Set a size 
// Add stuff to view here 
loadingHUD.customView = customView; 
[HUD show:YES]; 
+4

,我認爲你應該添加MBProgressHUD'的'初始化線。 – Raptor

相關問題