Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

swiftd

macrumors newbie
Original poster
Jul 12, 2009
11
0
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:

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.