0
`UIWindow *tempKeyboardWindow = [[[UIApplication sharedApplication] windows]objectAtIndex:0];
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:tempKeyboardWindow animated:YES];
hud.animationType = MBProgressHUDAnimationZoomOut;
hud.dimBackground = YES;
hud.labelText = showString;
我需要HUD添加到我的應用程序窗口,所以我用上面的代碼但不working.can任何一個幫助我嗎?
顯示, self.window.rootViewController.view上的MBProgressHUD – Rajesh