Iphone 从superView中删除后如何显示MBProgressHUD。?
从Iphone 从superView中删除后如何显示MBProgressHUD。?,iphone,objective-c,ios6,xcode4.5,mbprogresshud,Iphone,Objective C,Ios6,Xcode4.5,Mbprogresshud,从superview中删除后,我的MBProgressHUD不显示。当我第一次删除superview之后,我几乎开始播种,但不可见。 我的代码是 if(condition) { HUD.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"37x-Checkmark.png"]]; [HUD bringSubviewToFront:HUD]; HUD.mode = MBProg
superview
中删除后,我的MBProgressHUD
不显示。当我第一次删除superview
之后,我几乎开始播种,但不可见。
我的代码是
if(condition)
{
HUD.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"37x-Checkmark.png"]];
[HUD bringSubviewToFront:HUD];
HUD.mode = MBProgressHUDModeCustomView;
HUD.labelText = @"Unfollowed";
[HUD hide:YES afterDelay:0.5];
}
[HUD hide:YES];
[HUD removeFromSuperViewOnHide];
之后,我再次展示它
[HUD show:YES];
但是这个方法不显示它。请帮助我删除此代码[HUD removeFromSuperViewOnHide];试一试