我已将头文件添加到我的视图控制器并创建了一个类的实例,但我正在使用未定义的符号
architecture i386: "_OBJC_CLASS_$_MedicineDownloadsView", referenced from: error.
如何解决?
我的主视图控制器如下;
头文件
#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