林从Github我的项目之一使用MBProgressHUD具有模糊的效果,但我不能让这项工作。MBProgressHUD与模糊效果给出了一个线程1:SIGABRT
我的代码:
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];
我的Xcode示出了线程1:信号SIGABRT错误时,即时通讯添加HUD.blurBackground = YES;到MBProgressHUD。如果我删除这条线比它工作得很好。
我的日志文件显示以下错误:
[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'
林很新的Objective-C和努力,现在发现了这一点,超过4小时,但即时得到那种绝望,所以我希望有人能帮助我。
提前感谢您的时间。
BR,
月
Andrey,offcourse这些文件被添加到项目中。 – Jan
我告诉你我是怎么做到的。我没有告诉你,你忘了包括他们。真的,它不会再让我崩溃了。你知道吗?尝试自己实施setter。我想这可能适合你 –
或只是干净。这是一个疯狂的猜测,但它也可能工作 –