문제

Im using MBProgressHUD with blur effect in one of my projects from Github , but I cannot get this work.

My code:

HUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view];
[self.navigationController.view addSubview:HUD];
HUD.blurBackground = YES;
HUD.delegate = self;
HUD.labelText = @"Retrieving data";
HUD.minSize = CGSizeMake(135.f, 135.f);

[HUD showWhileExecuting:@selector(myMixedTask) onTarget:self withObject:nil animated:YES];

My Xcode shows a Thread 1: Signal SIGABRT error when im adding the HUD.blurBackground = YES; to the MBProgressHUD. If I delete this line than it works just fine.

My logfile shows the following error:

[MBProgressHUD setBlurBackground:]: unrecognized selector sent to instance 0x111c06740

2014-01-22 10:02:15.025 [564:70b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MBProgressHUD setBlurBackground:]: unrecognized selector sent to instance 0x111c06740'

Im pretty new to Objective-C and trying to find this out for more than 4 hours now but im getting kind a desperate so I was hoping that someone could help me with this.

Thanks in advance for your time.

Br,

Jan

도움이 되었습니까?

해결책

You should clean your project. You've replaced previous version of MBProgressHUD with new one but now you need to recompile the project from scratch otherwise your app thinks you're still using the old version

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top