2012-06-22 33 views
0

我试图将我的应用程序转换为ARC,并且转换器在尝试显示并隐藏MBProgressHUD时发生错误。代码和错误如下。ARC和MBProgressHUD

hud = [MBProgressHUD hideHUDForView:self.view animated:YES]; 
// error: Implicit conversion of 'BOOL' (aka 'signed char') to 'MBProgressHUD *' is disallowed with ARC 

我不明白布尔在这种情况下有什么关系。你对这是什么造成了什么想法?谢谢你的帮助。

回答