开发者

MBProgressHUD and performselector problem - iphone

开发者 https://www.devze.com 2023-03-23 06:13 出处:网络
i wrote below code to MBProgressHUD: HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; [self.view addSubview:HUD];

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

0

精彩评论

暂无评论...
验证码 换一张
取 消