I get Lvalue required as left operand of assignment error when compiling the following code. Can anyone help?
Declaration:
Definition:
Use:
Declaration:
Code:
@interface myInfo: NSObject
{
CGPoint startPosition;
}
@property CGPoint startPosition;
@end
Code:
@implementation myInfo
@synthesize startPosition;
@end
Code:
myInfo* temp = [[myInfo alloc] init];
int ttt=100;
temp.startPosition.x = (CGFloat)ttt; << Compile error here
Last edited: