ビューコントローラーにヘッダーファイルを追加し、クラスのインスタンスを作成しましたが、未定義のシンボルを使用しています
architecture i386: "_OBJC_CLASS_$_MedicineDownloadsView", referenced from: error.
修正方法は?
私のメインView Controllerは次のとおりです。
ヘッダファイル
#import <UIKit/UIKit.h>
#import "MedicineDownloadsView.h"
@interface ViewController : UIViewController {
MedicineDownloadsView *medicineDownload;
}
@property (nonatomic,retain) MedicineDownloadsView *medicineDownload;
@end
メインファイル
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
@synthesize medicineDownload;
- (void)viewDidLoad {
[super viewDidLoad];
medicineDownload = [[MedicineDownloadsView alloc]init];
self.view = medicineDownload;
}
@end