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

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
i have a bunch of objects (image views, buttons, sliders, etc.) in an array, and would like to shift them all at once using fast enumeration and CGAffineTransform... however, i can't seem to get it working.

Code:
for (id objects in theArray)
			{
			CGAffineTransform t = CGAffineTransformMakeTranslation(44, 0);
			objects.transform = t;
			}

Error: request for member 'transform' in something not a structure or union

any ideas?
 
Code:
CGAffineTransform t = CGAffineTransformMakeTranslation(44, 0);

for (id objects in theArray)
{
     [objects setTransform:t];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.