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

HUD を使用 = [[MBProgressHUD alloc]initWithview:self.view]];
insted of
HUD = [MBProgressHUD showHUDAddedTo:self.view animation:YES]; その後、あなたの問題は解決されます

于 2012-03-27T08:34:12.460 に答える
0
[self performSelector:@selector(CallPrivateKwikis:) withObject:nil afterDelay:0.1];

CallPrivateKwiki の末尾にコロンを追加します。

于 2011-07-28T06:59:30.790 に答える