A question about specifier-qualifier-list has already been (asked) and answered but none of the anwsers given solve my problem.
My code is simple:
#import <UIKit/UIKit.h>
@interface TableCellWithTextView: UITableViewCell
{
@private
UITextView *theTextView;
}
@property (nonatomic, retain) UITextView *theTextView;
@end
But I get the compiler error "error: expected specifier-qualifier-list before 'UITextView'"
If I replace UITextView
with UIView
the error goes away. More oddly in my um.. in my view (no pun intended ;-)) is that I can also use any other view class without problem (UITextLabel
, UIImageView
, etc..)
But most bizarrely of all, elsewhere in my project, this compiles (and works):
#import <UIKit/UIKit.h>
@interface ToDoDetailTextViewEditCell : UITableViewCell
{
@private
UITextView *theTextView;
}
@property (nonatomic, retain) UITextView *theTextView;
@end