首页 文章

MBProgressHUD和performselector问题 - iphone

提问于
浏览
3

我在下面写了代码到MBProgressHUD:

HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
[self.view addSubview:HUD];
HUD.delegate = self;
HUD.labelText = NSLocalizedString(@"Loading Workbench", nil);
HUD.detailsLabelText = NSLocalizedString(@"please wait", nil);
[HUD showWhileExecuting:@selector(loadWorkbench) onTarget:self withObject:nil animated:YES];

并在 loadWorkbench 方法我写的代码如下:

[self performSelector:@selector(CallPrivateKwikis)withObject:nil afterDelay:0.1];

但从这里 CallPrivateKwikis 永远不会被召唤 . 我无法找到问题 .

请你们中的任何一个人帮忙 .

提前致谢 .

2 回答

  • 0
    [self performSelector:@selector(CallPrivateKwikis:) withObject:nil afterDelay:0.1];
    

    在CallPrivateKwikis的末尾添加冒号 .

  • 0

    使用HUD = [[MBProgressHUD alloc] initWithview:self.view]];
    绝对的
    HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];那么你的问题就会解决

相关问题