Hey guys,
I have an array of UIImageView called boxArray. I'm trying to use the frame attribute of the array elements in another part of the program, like so:
but I get the following compile error:
error: incompatible types in initialization
Can anyone see where I'm going wrong? Thanks for reading.
I have an array of UIImageView called boxArray. I'm trying to use the frame attribute of the array elements in another part of the program, like so:
Code:
CGRect *newFrame = (((UIImageView *)[boxArray objectAtIndex:i]).frame);
but I get the following compile error:
error: incompatible types in initialization
Can anyone see where I'm going wrong? Thanks for reading.