我在下面写了代码到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 回答
在CallPrivateKwikis的末尾添加冒号 .
使用HUD = [[MBProgressHUD alloc] initWithview:self.view]];
绝对的
HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];那么你的问题就会解决