I am trying to resize the height of my row in UITableView based on the text length. I have the following code:
- (CGFloat)tableView:(UITableView *)tableView heig
The work of changing cell's subviews' frames is done in - (void)layoutSubviews
of UITableViewCell
class, so if you want alter that behavior you can subclass common UITableViewCell
and then do smth like:
@implementation MyTableViewCell
- (void)layoutSubviews {
[super layoutSubviews];
self.imageView.frame = CGRectMake( -- your own size -- );
}
@end