MBProgressHUD and performselector problem - iphone
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 CallPrivate开发者_JS百科Kwikis is never called. i am unable to find the problem.
can any one of you please help on this.
Thanks in advance.
[self performSelector:@selector(CallPrivateKwikis:) withObject:nil afterDelay:0.1];
Add the colon at the end of CallPrivateKwikis.
Use HUD = [[MBProgressHUD alloc]initWithview:self.view]];
insted of
HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; then ur problem will be solved
精彩评论