This is my code:
#import <UIKit/UIKit.h>
@interface CustomCellArticle: UITableViewCell
@property(nonatomic,retain) IBOutlet UILabel *name;
@end
In first time I received this error:
Missing @end
Expected identifier or '('
in the first of the code, and it required me to add @end in the first to fix it.
the code became like this:
#import <UIKit/UIKit.h>
@end //here the seconde error
@interface CustomCellArticle: UITableViewCell
@property(nonatomic,retain) IBOutlet UILabel *name;
@end
When I add it, I received a new error:
@end must appear in an Objective-C context
I don’t know what’s happened exactly, please help!
I used the same class in another project and it works fine!
Yes that is from a another header or implementation file already imported beforehand that is missing a @end
It could be a .h or .m file