Hello, I`m using an Image that is 320x30 using this code :
UIImageView *bg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"higlight_cell_mockup.png"]];
[bg setContentMode:UIViewContentModeScaleAspectFit];
cell.backgroundView = bg ;
Problem is, it's still looking like this :
instead of scaling the image up to fill the cell .
Any ideas ?
Edit
This is using :
[bg setContentMode:UIViewContentModeScaleToFill];
And this is using :
[bg setContentMode:UIViewContentModeScaleAspectFill];
They vertically scale up better but they BG is still only filling a tiny portion of the cell left of the text, can't get it to fill the entire cell unfortunately ..