3

i wrote below code to 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];

and in loadWorkbench method i wrote the code like:

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

but from here CallPrivateKwikis is never called. i am unable to find the problem.

can any one of you please help on this.

Thanks in advance.

vidya
  • 43
  • 9

2 Answers2

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

Add the colon at the end of CallPrivateKwikis.

Praveen S
  • 10,355
  • 2
  • 43
  • 69
  • my method syntax is like: - (void)CallPrivateKwikis, so think no need to add colon but any way i added it but no use still getting the same problem – vidya Jul 28 '11 at 07:09
  • Change the syntax to -(void) CallPrivateKwikis:(id)params. – Praveen S Jul 28 '11 at 07:10
0

Use HUD = [[MBProgressHUD alloc]initWithview:self.view]];
insted of
HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; then ur problem will be solved

Bad Boy
  • 628
  • 2
  • 5
  • 23