Trying to import a custom UITableViewCell, and it continues to give me a file not found by the lexical preprocessor error. I can not understand.
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) {
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
}
- (void)dealloc
{
[super dealloc];
}
@end
In my UItableviewcontroller.h file, I tried to import like @classand it doesn't seem to matter. and in my implementation file I just
#import "ProductCell.h"
Why is this? what is the main step i will skip. Importing it into the implementation file should solve my problem. Test Cleaning Project
source
share