Newbie question
Hi everybody.
I'm new to the iPhone and objective C so I'm sorry if this sounds like a stupid question.
I'm trying to modify the Touches sample for the iPhone.
Originally the code is:
@interface MyView()
@property (nonatomic, retain) UIImageView *firstPieceView;
@property (nonatomic, retain) UIImageView *secondPieceView;
@property (nonatomic, retain) UIImageView *thirdPieceView;
@property (nonatomic, retain) UILabel *touchPhaseText;
@property (nonatomic, retain) UILabel *touchInfoText;
@property (nonatomic, retain) UILabel *touchTrackingText;
@property (nonatomic, retain) UILabel *touchInstructionsText;
@property (nonatomic) BOOL piecesOnTop;
@property (nonatomic) CGPoint startTouchPosition;
@end
I want to have an array of 3 (or n) PieceView instead of firstPieceView, secondPieceView and thirdPieceView
if I put:
@property (nonatomic, retain) UIImageView *PieceView[3];
(and change the .h file accordingly)
I get the error:
bad property declaration
What don't I know that causes this?
Thanx...