Search code examples
iosobjective-cuiimageviewuiimagesdwebimage

load image with SDWebImage image size greater than imageview


i am trying make UIImageView with in bubble view. imageView image load using SDWebImage imageView size is fixed Width:150 to height:150.

Code:

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
 //...... some code here
[cell.oMessageImg sd_setImageWithURL:iUrl];
 [cell setNeedsUpdateConstraints];
 return cell;}

What I Want

enter image description here
What it shows
enter image description here


Solution

  • Configure the views to clip subviews, otherwise some views continue to draw contents outside their bounds.