An attempt to import a custom UITableViewCell continues to give me the file not found lexical error preprocessor in Objective-C

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) {
        // 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

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

+5
source share

All Articles