`UIWindow *tempKeyboardWindow = [[[UIApplication sharedApplication] windows]objectAtIndex:0];
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:tempKeyboardWindow animated:YES];
hud.animationType = MBProgressHUDAnimationZoomOut;
hud.dimBackground = YES;
hud.labelText = showString;
`
我需要将 hud 添加到我的应用程序窗口中,所以我使用了上面的代码但没有工作。有人可以帮助我吗?