Пытаюсь импортировать настраиваемую ячейку UITableViewCell, но она продолжает выдавать ошибку лексического препроцессора, которая не найдена. Я не могу понять.
ProductCell.h
#import <UIKit/UIKit.h>
@interface ProductCell : UITableViewCell {
IBOutlet UILabel *descript;
IBOutlet UILabel *productCode;
IBOutlet UIImageView *prodImage;
}
@property (nonatomic, retain) IBOutlet UILabel *descript;
@property (nonatomic, retain) IBOutlet UILabel *productCode;
@property (nonatomic, retain) IBOutlet UIImageView *prodImage;
@end
ProductCell.m
#import "ProductCell.h"
@implementation ProductCell
@synthesize descript;
@synthesize productCode;
@synthesize prodImage;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
- (void)dealloc
{
[super dealloc];
}
@end
В моем файле UItableviewcontroller.h я пытался импортировать как @class
, но, похоже, не делает разница. а в моем файле реализации я просто
#import "ProductCell.h"
почему это? какой основной шаг мне не хватает. Импорт его в файл реализации должен решить мою проблему. Пробовал проект очистки