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

ozzieing

macrumors newbie
Original poster
Jun 24, 2009
6
0
I really need help with this little thing because once its done then my app is finished. Basically I have an array with objects in them but I'm unsure how to move them.

If I try the standard
CGPoint Pos = CGPointMake(50,50);
[myArray objectAtIndex:1].center = Pos;

Then I get:
request for member center in something is not in a structure or union

How can I solve this?
 
Code:
[myArray objectAtIndex:1]
returns id. You clearly (think) you know the type of this object. So cast it to remove the warning.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.