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永远不会被调用。我找不到问题。

你们中的任何人都可以帮忙吗?

提前致谢。

4

2 回答 2

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

在 CallPrivateKwikis 末尾添加冒号。

于 2011-07-28T06:59:30.790 回答
0

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

于 2012-03-27T08:34:12.460 回答