Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 从superView中删除后如何显示MBProgressHUD。?_Iphone_Objective C_Ios6_Xcode4.5_Mbprogresshud - Fatal编程技术网

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];试一试