Cannot change UIImageView frame in a custom table cell.
- by jkally
I have a custom table cell. In it I have put (via the IB) an image view of a certain frame
In 'cellForRowAtIndexPath', under certain conditions, I would like to modify the frame of this UIImageView, so I write something like:
UIImageView *imgv = (UIImageView *)[cell viewWithTag:1];
CGRect r = CGRectMake(20.0, 20.0, 10.0, 10.0);
imgv.frame = r;
But nothing expected happens (The frame does move a little though not to where I want, but doesn't change its size at all);