cell.imageView curved corner on first and last cell
-
27-09-2019 - |
문제
In the iTunes app on the iphone there is a list of songs or something.
They are in a grouped tableview and the first image has a curved corner to match the top left corner of the grouped tableView.
How would I go about replicating this (and the one at the bottom?)
Thanks
Thomas
해결책
Easiest way would be to use CoreAnimation with it, you could do something like this:
[yourView layer].cornerRadius = 10;
[yourView layer].maskToBounds = YES;
where yourView is contentView having all cells inside it. ( This way you get curved corners only on first and last rows )
Cheers, Krzysztof Zabłocki
제휴하지 않습니다 StackOverflow