Quote:
Originally Posted by rraagg
So I take it no one knows :-(
|
Sorry dude, I had a go but couldn't figure it out. See if you can get to the bottom of this one...
I just want to make a pointer to a CGPoint struct. I can do it if i first copy my views frame and then reference its origin. But if i try and copy the address of the origin pointer without first copying the frame that that origin point resides in I get an error: "Ivalue required as unary '&' operand". Any ideas?
CGPoint *ptr;
CGRect rect = aView.frame;
ptr = &rect.origin;// this is allowed
ptr = &aView.frame.origin;// this is not allowed ?!