我在使用MBProgressHUD库时遇到了问题。我可以在我的主视图控制器通常使用它,但是,那么,当我尝试导入.h文件在其他视图控制器,我有以下错误:如何在多个ViewControllers中使用MBProgressHUD?
Redefinition of enumerator 'MBProgressHUDModeIndeterminate'
Redefinition of enumerator 'MBProgressHUDModeDeterminate'
...
有谁知道我怎样才能管理呢?
感谢
编辑:我在我的主视图控制器
#import "ViewController.h"
#import "FMDatabase.h"
#import "AppDelegate.h"
#import "MBProgressHUD.h"
@implementation ViewController
以下进口当我试图把这个进口其他视图控制器,我得到的错误:
#import "FinalViewController.h"
#import "Parse/Parse.h"
#import "MBProgressHUD.h"
@implementation FinalViewController
我已使用此链接的MBProgressHUD库https://github.com/matej/MBProgressHUD
FinalViewController是'ViewController'的子类吗? – 2012-01-05 18:46:21
是 @interface FinalViewController:的UIViewController –
mariogiron
2012-01-05 18:55:51