我在使用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