Cannot change UIImageView frame in a custom table cell.

Posted by jkally on Stack Overflow See other posts from Stack Overflow or by jkally
Published on 2010-12-31T22:37:52Z Indexed on 2010/12/31 22:54 UTC
Read the original article Hit count: 153

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);

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview