我正在尝试使用 MBProgressHUD。我将标题添加到项目中,在类中导入标题并以这种方式从 ibaction 调用 MBProgressHUD:
-(IBAction)submitForm:(id)sender{
MBProgressHUD *HUD = [[MBProgressHUD alloc] initWithView:self.view];
[self.view addSubview:HUD];
HUD.labelText = @"Connecting";
[HUD show:YES];
}
当我构建项目时发生错误:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MBProgressHUD", referenced from:
objc-class-ref in FormViewController.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
我该如何解决?你能帮助我吗?