How to avoid UIImageView contained in the UITableViewCell being expanded?
<p>How to avoid UIImageView contained in the UITableViewCell being expanded when each table view cell has different height? I am having variable height for each row depending on the length of text coming for UILabel. When height of a UITableViewCell increases,the image view<code>s image height also increases. How to keep image view</code>s frame constant?</p>

<pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
       NSString *text = [self.myArray objectAtIndex:indexPath.row];

        if(text.length!=0)
        {    

        CGSize constraint = CGSizeMake(212, LONG_MAX);

        CGSize size = [text sizeWithFont:[UIFont fontWithName:@"Arial" size:14.0] constrainedToSize:constraint lineBreakMode:UILineBreakModeWordWrap];

        CGFloat height = size.height;

      return (71.0 + height); //this gives the row height
        }
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";

    MyXYZ *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"MyXYZ" owner:nil options:nil];
        for (id currentObject in topLevelObjects) {
            if ([currentObject isKindOfClass:[MyXYZ class]]) {
                cell = (MyXYZ *)currentObject;
]                break;
            }
        }
    }  

 ((HJManagedImageV *)cell.myImageView).url = [NSURL URLWithString:myImageUrl]; 
}   
</code></pre>
