Could someone explain why the second syntax of the same expression does not work? If you need some background, manyViews
is a pointer to an NSMutableArray loaded with UIView objects.
[[manyViews objectAtIndex:0] setFrame:CGRectMake(30,30,100,20)]; // works as intended
[manyViews objectAtIndex:0].frame = CGRectMake(30,30,100,20); // compiler does not recognize the "frame" member