Trying to import a custom UITableViewCell keeps giving me a file not found lexical preprocessor error in Objective-C -
trying import custom uitableviewcell , keeps giving me file not found lexical preprocessor error. can't figure out.
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 view selected state } - (void)dealloc { [super dealloc]; } @end
in uitableviewcontroller.h file i've tried import @class
, not doesnt seem make difference. , in implementation file simply
#import "productcell.h"
why this? basic step missing. importing in implementation file should solve issue. tried cleaning project
this appears xcode4 bug. despite fact compiler shows error, if try running project, should work.
this discussed in apple forums in following places:
Comments
Post a Comment