I have an UITableView with an custom UITableViewCell. In the cell, for style purposes, I have an UIImage that is much bigger than my custom cell, and what happens is that the image isn't cropped and it employs the other cells. Is there a way or a property to aviod this behaviour? Thank you.
I'm not native english, for that reason I post this picture. https://i.sstatic.net/E4mUN.jpg
In cellForRowAtIndexPath: method of table view data source, do cell.clipsToBounds = YES
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With